Created
May 27, 2023 20:53
-
-
Save MuffinKing-jpeg/b89c7181d9c2a0956b29b037774cbe31 to your computer and use it in GitHub Desktop.
ESLint for my web projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
env: { | |
es6: true, | |
node: true, | |
}, | |
extends: [ | |
'eslint:recommended', | |
'plugin:import/errors', | |
'plugin:import/warnings', | |
'plugin:import/typescript', | |
'google', | |
'plugin:@typescript-eslint/recommended', | |
], | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
sourceType: 'module', | |
}, | |
ignorePatterns: [ | |
'/lib/**/*', // Ignore built files. | |
'/node_modules/**/*', | |
], | |
plugins: [ | |
'@typescript-eslint', | |
'import', | |
], | |
rules: { | |
'quotes': ['error', 'single'], | |
'require-jsdoc': 0, | |
'no-unused-vars': 'warn', | |
'import/no-unresolved': 0, | |
'linebreak-style': 0, | |
'new-cap': 0, | |
'max-len': 0, | |
'@typescript-eslint/no-explicit-any': 1, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment