Skip to content

Commit

Permalink
lint: update ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Mar 24, 2024
1 parent b37161e commit 4986a53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
tsconfigRootDir: __dirname,
project: './tsconfig.json'
},
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', '@stylistic'],
rules: {
'@typescript-eslint/naming-convention': ['error', {
selector: ['variableLike', 'parameterProperty', 'classProperty', 'typeProperty'],
Expand All @@ -17,9 +17,11 @@ module.exports = {
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'new-cap': 'off',
'no-var': 'off',
'comma-dangle': 'off',
indent: ['off', 'tab'],
semi: ['error', 'never']
'@stylistic/indent': ['off', 'tab'],
'@stylistic/semi': ['error', 'never'],
'@stylistic/comma-dangle': ['error', 'never'],
'@stylistic/comma-spacing': ['error', { before: false, after: true }],
'@stylistic/quotes': ['error', 'single'],
},
ignorePatterns: ['dist', 'node_modules', '.eslintrc.cjs']
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"typescript": "^5.4.3"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^1.7.0",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"eslint": "^8.57.0",
Expand Down

0 comments on commit 4986a53

Please sign in to comment.