lint: fix linter config

This commit is contained in:
tiddlygit-test 2020-12-20 20:58:49 +08:00
parent 6c6b5f2326
commit 63be0f9825
4 changed files with 10 additions and 3 deletions

View file

@ -64,6 +64,7 @@ module.exports = {
],
'unicorn/consistent-function-scoping': [0],
'no-void': [0],
'semi': [0],
'no-use-before-define': [0],
'@typescript-eslint/no-use-before-define': [1],
},
@ -85,7 +86,7 @@ module.exports = {
'plugin:import/warnings',
'plugin:import/typescript',
],
plugins: ['@typescript-eslint/eslint-plugin', 'prettier', 'react', 'html', 'babel', 'react', 'unicorn', 'import'],
plugins: ['@typescript-eslint/eslint-plugin', 'prettier', 'react', 'html', 'react', 'unicorn', 'import'],
env: {
browser: true,
es6: true,

View file

@ -3,7 +3,7 @@ module.exports = {
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
printWidth: 140,
printWidth: 160,
arrowParens: 'always',
jsxBracketSameLine: true,
jsxSingleQuote: false,

6
package-lock.json generated
View file

@ -20328,6 +20328,12 @@
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc="
},
"prettier": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz",
"integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==",
"dev": true
},
"prettier-linter-helpers": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",

View file

@ -159,7 +159,6 @@
"eslint-config-standard-with-typescript": "^19.0.1",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^2.3.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-html": "6.1.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
@ -172,6 +171,7 @@
"graphql-hooks": "^5.0.0",
"if-env": "^1.0.4",
"node-loader": "^1.0.2",
"prettier": "^2.2.1",
"prop-types": "15.7.2",
"react": "16.13.1",
"react-ace": "9.1.4",