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 12, 2024
1 parent b345896 commit 1ad460d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 31 deletions.
44 changes: 15 additions & 29 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,39 +1,25 @@
module.exports = {
env: {
es2022: true
},
extends: [
'xo'
],
overrides: [
{
extends: [
'xo-typescript',
],
files: [
'sources/**/*.ts',
'index.ts'
],
rules:
{
'@typescript-eslint/naming-convention': ['error', {
selector: ['variableLike', 'parameterProperty', 'classProperty', 'typeProperty'],
format: ['PascalCase']
}],
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'new-cap': 'off'
}
}
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
tsconfigRootDir: __dirname,
project: './tsconfig.json'
},
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/naming-convention': ['error', {
selector: ['variableLike', 'parameterProperty', 'classProperty', 'typeProperty'],
format: ['PascalCase']
}],
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'new-cap': 'off',
'no-var': 'off',
'comma-dangle': 'off',
indent: ['off', 'tab'],
semi: 'off'
}
semi: ['error', 'never']
},
ignorePatterns: ['dist', 'node_modules', '.eslintrc.cjs']
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"eslint": "^8.57.0",
"eslint-config-xo": "^0.44.0",
"eslint-config-xo-typescript": "^4.0.0"
"typescript-eslint": "^7.2.0"
}
}

0 comments on commit 1ad460d

Please sign in to comment.