@jeroenpol/eslint-config 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +3 -30
- package/configurations/best-practices.mjs +1 -3
- package/configurations/stylistic.mjs +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Polware eslint-config
|
|
2
2
|
|
|
3
3
|
## Usage
|
|
4
4
|
|
|
@@ -6,33 +6,6 @@ Use this esLint config as a basis for you Angular projects.
|
|
|
6
6
|
|
|
7
7
|
### Installation
|
|
8
8
|
|
|
9
|
-
1. Install the
|
|
9
|
+
1. Install and initialize eslint running the following command:
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
npm i --save-dev @jeroenpol/eslint-config
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
2. Install peer dependencies using NPM 5+ and this command:
|
|
16
|
-
|
|
17
|
-
```sh
|
|
18
|
-
npx install-peerdeps --dev @jeroenpol/eslint-config
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
3. Update your `.eslintrc` file to:
|
|
22
|
-
|
|
23
|
-
```json
|
|
24
|
-
{
|
|
25
|
-
"root": true,
|
|
26
|
-
"parser": "@typescript-eslint/parser",
|
|
27
|
-
"parserOptions": {
|
|
28
|
-
"ecmaVersion": 2020,
|
|
29
|
-
"sourceType": "module"
|
|
30
|
-
},
|
|
31
|
-
"overrides": [
|
|
32
|
-
{
|
|
33
|
-
"files": ["*.ts", "*.tsx"],
|
|
34
|
-
"extends": ["@jeroenpol/eslint-config"]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
```
|
|
11
|
+
npm init @eslint/config@latest -- --config @jeroenpol/eslint-config
|
|
@@ -5,9 +5,7 @@ import tseslint from 'typescript-eslint';
|
|
|
5
5
|
|
|
6
6
|
export default tseslint.config(tseslint.configs.recommendedTypeChecked,
|
|
7
7
|
{
|
|
8
|
-
files: ['
|
|
9
|
-
},
|
|
10
|
-
{
|
|
8
|
+
files: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.js'],
|
|
11
9
|
plugins: { 'sonarjs': sonarjs, 'simple-import-sort': simpleImportSort, 'unused-imports': unusedImports, '@typescript-eslint': tseslint.plugin },
|
|
12
10
|
languageOptions: {
|
|
13
11
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeroenpol/eslint-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "ES Lint config made for Angular, configured by Polware",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@stylistic/eslint-plugin-ts": "^4.2.0",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "8.8.1",
|
|
43
43
|
"@typescript-eslint/parser": "^8.8.1",
|
|
44
|
-
"eslint": "^9.
|
|
44
|
+
"eslint": "^9.8.0",
|
|
45
45
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
46
46
|
"eslint-plugin-sonarjs": "3.0.2",
|
|
47
47
|
"eslint-plugin-unused-imports": "4.1.4",
|