aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorNeonXP <i@neonxp.dev>2023-08-06 01:23:45 +0300
committerNeonXP <i@neonxp.dev>2023-08-06 01:29:52 +0300
commite8563a5e6f431fb953ad738262b5150b8349582d (patch)
tree519f07c34a79d8f48ca5a2682e08ccb04f5d1b7c /.eslintrc.json
parent7818c08dc67c6916956c50e93e01e0a04010898b (diff)
fix if err... code action
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json40
1 files changed, 23 insertions, 17 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 4d54b63..d25565b 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,19 +1,25 @@
{
- "root": true,
- "parser": "@typescript-eslint/parser",
- "parserOptions": {
- "ecmaVersion": 6,
- "sourceType": "module"
- },
- "plugins": [
- "@typescript-eslint"
- ],
- "rules": {
- "@typescript-eslint/naming-convention": "warn",
- "@typescript-eslint/semi": "warn",
- "curly": "warn",
- "eqeqeq": "warn",
- "no-throw-literal": "warn",
- "semi": "off"
- }
+ "env": {
+ "browser": false,
+ "commonjs": true,
+ "es6": true,
+ "node": true,
+ "mocha": true
+ },
+ "parserOptions": {
+ "ecmaVersion": 2018,
+ "ecmaFeatures": {
+ "jsx": true
+ },
+ "sourceType": "module"
+ },
+ "rules": {
+ "no-const-assign": "warn",
+ "no-this-before-super": "warn",
+ "no-undef": "warn",
+ "no-unreachable": "warn",
+ "no-unused-vars": "warn",
+ "constructor-super": "warn",
+ "valid-typeof": "warn"
+ }
}