diff options
author | Max Baumann <[email protected]> | 2020-12-12 22:56:31 +0100 |
---|---|---|
committer | Max Baumann <[email protected]> | 2020-12-12 22:56:31 +0100 |
commit | 105c148ccc2ee589dc47716a963835687013d683 (patch) | |
tree | 4f226c2a05771589276b6873004ef43366ef2027 /.eslintrc.js | |
parent | 0854b74080cf4d572f56b66d7a581571525f6bf6 (diff) | |
download | SponsorBlock-105c148ccc2ee589dc47716a963835687013d683.tar.gz SponsorBlock-105c148ccc2ee589dc47716a963835687013d683.zip |
feat(lint): add default .eslintrc.js
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..183a27a0 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,27 @@ +module.exports = { + env: { + browser: true, + es2021: true, + node: true, + }, + extends: [ + "eslint:recommended", + "plugin:react/recommended", + "plugin:@typescript-eslint/recommended", + ], + parser: "@typescript-eslint/parser", + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + ecmaVersion: 12, + sourceType: "module", + }, + plugins: ["react", "@typescript-eslint"], + rules: {}, + settings: { + react: { + version: "detect", + }, + }, +}; |