mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
style: add lots of eslint plugins
This commit is contained in:
parent
c211d1aab1
commit
8455a7f6f6
4 changed files with 1298 additions and 2355 deletions
38
.eslintrc
38
.eslintrc
|
|
@ -1,16 +1,42 @@
|
|||
{
|
||||
"parser": "babel-eslint",
|
||||
"extends": "airbnb",
|
||||
"globals": {
|
||||
"window": true,
|
||||
"document": true
|
||||
},
|
||||
"rules": {
|
||||
"unicorn/prevent-abbreviations": [
|
||||
"error",
|
||||
{
|
||||
"whitelist": {
|
||||
"getInitialProps": true,
|
||||
"mapStateToProps": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
|
||||
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
|
||||
"react/forbid-prop-types": [0],
|
||||
"import/prefer-default-export": [0],
|
||||
"camelcase": [0],
|
||||
"linebreak-style": [0]
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"extends": [
|
||||
"airbnb",
|
||||
"airbnb/hooks",
|
||||
"standard",
|
||||
"plugin:flowtype/recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:unicorn/recommended",
|
||||
"prettier",
|
||||
"prettier/flowtype",
|
||||
"prettier/react",
|
||||
"prettier/standard",
|
||||
"prettier/unicorn",
|
||||
"plugin:import/errors",
|
||||
"plugin:import/warnings",
|
||||
"plugin:promise/recommended",
|
||||
"plugin:sonarjs/recommended"
|
||||
],
|
||||
"plugins": ["flowtype", "prettier", "react", "html", "unicorn", "import", "react-hooks", "jsx-a11y", "sonarjs"],
|
||||
"globals": {
|
||||
"window": true,
|
||||
"document": true
|
||||
}
|
||||
}
|
||||
8
.prettierrc
Normal file
8
.prettierrc
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"semi": true,
|
||||
"singleQuote": true,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "all",
|
||||
"printWidth": 120,
|
||||
"useTabs": false
|
||||
}
|
||||
3530
package-lock.json
generated
3530
package-lock.json
generated
File diff suppressed because it is too large
Load diff
75
package.json
75
package.json
|
|
@ -17,10 +17,20 @@
|
|||
"repository": "https://github.com/tiddly-gittly/TiddlyGit-Desktop",
|
||||
"author": "Lin Onetwo<linonetwo012@gmail.com>, Quang Lam <quang.lam2807@gmail.com>",
|
||||
"dependencies": {
|
||||
"@date-io/date-fns": "1.3.13",
|
||||
"date-fns": "2.14.0",
|
||||
"@cliqz/adblocker-electron": "1.15.1",
|
||||
"@material-ui/core": "4.10.2",
|
||||
"@material-ui/icons": "4.9.1",
|
||||
"@material-ui/pickers": "3.2.10",
|
||||
"ace-builds": "1.4.11",
|
||||
"algoliasearch": "4.2.0",
|
||||
"classnames": "2.2.6",
|
||||
"blueimp-md5": "2.16.0",
|
||||
"cheerio": "1.0.0-rc.3",
|
||||
"darkreader": "4.9.10",
|
||||
"download": "8.0.0",
|
||||
"electron": "8.3.1",
|
||||
"electron-context-menu": "2.0.1",
|
||||
"electron-is-dev": "1.2.0",
|
||||
"electron-settings": "3.2.0",
|
||||
|
|
@ -33,38 +43,6 @@
|
|||
"menubar": "8.0.2",
|
||||
"node-fetch": "2.6.0",
|
||||
"proxy-agent": "3.1.1",
|
||||
"regedit": "3.0.3",
|
||||
"semver": "7.3.2",
|
||||
"styled-components": "^5.1.1",
|
||||
"styled-is": "^1.3.0",
|
||||
"tiddlywiki": "^5.1.22",
|
||||
"tmp": "0.2.1",
|
||||
"uuid": "8.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@date-io/date-fns": "1.3.13",
|
||||
"@material-ui/core": "4.10.2",
|
||||
"@material-ui/icons": "4.9.1",
|
||||
"@material-ui/pickers": "3.2.10",
|
||||
"ace-builds": "1.4.11",
|
||||
"algoliasearch": "4.2.0",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-preset-env": "1.7.0",
|
||||
"babel-preset-react": "6.24.1",
|
||||
"blueimp-md5": "2.16.0",
|
||||
"classnames": "2.2.6",
|
||||
"concurrently": "5.2.0",
|
||||
"cross-env": "7.0.2",
|
||||
"date-fns": "2.14.0",
|
||||
"electron": "8.3.1",
|
||||
"electron-builder": "22.7.0",
|
||||
"electron-notarize": "0.3.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-airbnb": "18.1.0",
|
||||
"eslint-plugin-import": "2.21.1",
|
||||
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||
"eslint-plugin-react": "7.20.0",
|
||||
"eslint-plugin-react-hooks": "1.7.0",
|
||||
"prop-types": "15.7.2",
|
||||
"react": "16.13.1",
|
||||
"react-ace": "8.1.0",
|
||||
|
|
@ -76,9 +54,42 @@
|
|||
"react-window-infinite-loader": "1.0.5",
|
||||
"redux": "4.0.5",
|
||||
"redux-thunk": "2.3.0",
|
||||
"regedit": "3.0.3",
|
||||
"semver": "7.3.2",
|
||||
"styled-components": "^5.1.1",
|
||||
"styled-is": "^1.3.0",
|
||||
"simplebar": "5.2.0",
|
||||
"simplebar-react": "2.2.0",
|
||||
"tiddlywiki": "^5.1.22",
|
||||
"tmp": "0.2.1",
|
||||
"typeface-roboto": "0.0.75",
|
||||
"uuid": "8.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-preset-env": "1.7.0",
|
||||
"babel-preset-react": "6.24.1",
|
||||
"concurrently": "5.2.0",
|
||||
"cross-env": "7.0.2",
|
||||
"electron-builder": "22.7.0",
|
||||
"electron-notarize": "0.3.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-airbnb": "18.1.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-config-standard": "14.1.1",
|
||||
"eslint-plugin-flowtype": "5.1.3",
|
||||
"eslint-plugin-html": "6.0.2",
|
||||
"eslint-plugin-import": "2.21.1",
|
||||
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||
"eslint-plugin-node": "11.1.0",
|
||||
"eslint-plugin-prettier": "3.1.4",
|
||||
"eslint-plugin-promise": "4.2.1",
|
||||
"eslint-plugin-react": "7.20.0",
|
||||
"eslint-plugin-react-hooks": "1.7.0",
|
||||
"eslint-plugin-sonarjs": "^0.5.0",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"eslint-plugin-unicorn": "20.1.0",
|
||||
"patch-package": "^6.2.2",
|
||||
"wait-on": "5.0.1"
|
||||
},
|
||||
"homepage": "./",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue