eslint-config-aether
Advanced tools
Comparing version
@@ -7,3 +7,3 @@ module.exports = { | ||
"es2020": true, | ||
"es2021": true, | ||
"browser": true, | ||
@@ -10,0 +10,0 @@ "worker": true, |
{ | ||
"name": "eslint-config-aether", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A custom code style for ESLint.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/vanruesc/eslint-config-aether", |
@@ -59,6 +59,4 @@ # Eslint Config Aether | ||
Choose one of the following options to load a configuration. | ||
Note: The config `aether/typescript` sets `parserOptions.project` to `"tsconfig.json"` by default. | ||
### JavaScript | ||
#### package.json | ||
@@ -69,3 +67,3 @@ | ||
"eslintConfig": { | ||
"extends": "aether" | ||
"extends": "aether/typescript" | ||
} | ||
@@ -79,34 +77,4 @@ } | ||
{ | ||
"extends": "aether" | ||
"extends": "aether/typescript" | ||
} | ||
``` | ||
### TypeScript | ||
#### package.json | ||
```json | ||
{ | ||
"eslintConfig": { | ||
"extends": "aether/typescript", | ||
"parserOptions": { | ||
"project": [ | ||
"tsconfig.json" | ||
] | ||
} | ||
} | ||
} | ||
``` | ||
#### .eslintrc | ||
```json | ||
{ | ||
"extends": "aether/typescript", | ||
"parserOptions": { | ||
"project": [ | ||
"tsconfig.json" | ||
] | ||
} | ||
} | ||
``` |
@@ -6,2 +6,8 @@ module.exports = { | ||
"parserOptions": { | ||
"project": [ | ||
"tsconfig.json" | ||
] | ||
}, | ||
"extends": [ | ||
@@ -15,2 +21,3 @@ "aether/default", | ||
"indent": "off", | ||
"camelcase": "off", | ||
"no-unused-vars": "off", | ||
@@ -22,2 +29,32 @@ | ||
"@typescript-eslint/naming-convention": ["error", | ||
{ | ||
"selector": "default", | ||
"format": ["camelCase"] | ||
}, | ||
{ | ||
"selector": "variable", | ||
"format": ["camelCase", "UPPER_CASE"] | ||
}, | ||
{ | ||
"selector": "parameter", | ||
"format": ["camelCase"], | ||
"leadingUnderscore": "allow" | ||
}, | ||
{ | ||
"selector": "memberLike", | ||
"modifiers": ["private"], | ||
"format": ["camelCase"], | ||
"leadingUnderscore": "forbid" | ||
}, | ||
{ | ||
"selector": ["objectLiteralProperty", "objectLiteralMethod"], | ||
"format": null | ||
}, | ||
{ | ||
"selector": "typeLike", | ||
"format": ["PascalCase"] | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": "off", | ||
@@ -24,0 +61,0 @@ "@typescript-eslint/no-unused-vars": ["warn", { |
7772
5.96%155
29.17%78
-29.09%