mirror of
https://github.com/ozntel/file-explorer-note-count.git
synced 2026-07-22 05:40:24 +00:00
build(.eslintrc.js): update eslint config to enable plugin
This commit is contained in:
parent
fff08acb95
commit
ddd442b709
4 changed files with 31 additions and 21 deletions
31
.eslintrc.js
Normal file
31
.eslintrc.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
sourceType: 'module',
|
||||
},
|
||||
extends: ['prettier', 'plugin:prettier/recommended', 'eslint:recommended'],
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
},
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
'jsdoc',
|
||||
'prefer-arrow',
|
||||
'simple-import-sort',
|
||||
],
|
||||
rules: {
|
||||
'simple-import-sort/imports': 'error',
|
||||
'simple-import-sort/exports': 'error',
|
||||
'prefer-arrow/prefer-arrow-functions': [
|
||||
'warn',
|
||||
{
|
||||
disallowPrototype: true,
|
||||
singleReturnOnly: false,
|
||||
classPropertiesAllowed: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
|
@ -26,7 +26,6 @@
|
|||
"cz-conventional-changelog": "^3.3.0",
|
||||
"eslint": "^7.26.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-jsdoc": "^34.0.2",
|
||||
"eslint-plugin-prefer-arrow": "^1.2.3",
|
||||
"eslint-plugin-prettier": "^3.4.0",
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
parser: '@typescript-eslint/parser',
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
sourceType: 'module',
|
||||
},
|
||||
extends: ['prettier', 'plugin:prettier/recommended'],
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
},
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
'import',
|
||||
'jsdoc',
|
||||
'prefer-arrow',
|
||||
'simple-import-sort',
|
||||
],
|
||||
};
|
||||
Loading…
Reference in a new issue