Skip to content

Commit

Permalink
chore(eslint): update config for tseslint 8
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 29, 2024
1 parent ea9eb5e commit 0086e6c
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
import eslint from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import n from 'eslint-plugin-n';
Expand All @@ -14,17 +16,17 @@ export default tseslint.config(
},
},
eslint.configs.recommended,
n.configs['flat/recommended'],
perfectionist.configs['recommended-natural'],
n.configs['flat/recommended'],
...tseslint.config({
extends: tseslint.configs.recommendedTypeChecked,
files: ['**/*.js', '**/*.ts'],
languageOptions: {
parserOptions: {
EXPERIMENTAL_useProjectService: {
allowDefaultProjectForFiles: ['./*.*s', 'eslint.config.js'],
defaultProject: './tsconfig.json',
projectService: {
allowDefaultProject: ['*.js', '.*.js'],
},
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
Expand Down Expand Up @@ -117,21 +119,6 @@ export default tseslint.config(
'no-use-before-define': 'off',
},
}),
{
files: ['*.jsonc'],
rules: {
'jsonc/comma-dangle': 'off',
'jsonc/no-comments': 'off',
'jsonc/sort-keys': 'error',
},
},
{
extends: [tseslint.configs.disableTypeChecked],
files: ['**/*.md/*.ts'],
rules: {
'n/no-missing-import': ['error', {allowModules: ['impvol']}],
},
},
{
files: ['test/**/*.ts'],
rules: {
Expand Down

0 comments on commit 0086e6c

Please sign in to comment.