Skip to content

Commit

Permalink
better linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vinikjkkj committed Dec 22, 2024
1 parent d21845d commit cc5fb22
Show file tree
Hide file tree
Showing 12 changed files with 2,369 additions and 613 deletions.
33 changes: 1 addition & 32 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,32 +1 @@
const globals = require('globals')
const pluginJs = require('@eslint/js')
const tsEslintPlugin = require('typescript-eslint')
const tsEslintParser = require('@typescript-eslint/parser')

module.exports = [
{
files: ['**/*.{js,mjs,cjs,ts}'],
languageOptions: {
globals: globals.browser,
parser: tsEslintParser,
parserOptions: {
project: './tsconfig.json'
}
}
},
pluginJs.configs.recommended,
...tsEslintPlugin.configs.recommended,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'warn',
'@typescript-eslint/no-redundant-type-constituents': 'warn',
'@typescript-eslint/no-unnecessary-type-assertion': 'warn',
'keyword-spacing': 'warn',
'no-trailing-spaces': "warn",
"eol-last": "warn",
"eqeqeq": "warn",
"quotes": ['warn', 'single'],
}
}
]
module.exports = require('@vinikjkkj/eslint-config')
Loading

0 comments on commit cc5fb22

Please sign in to comment.