@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 CHANGED
@@ -1,3 +1,7 @@
1
+ 2.0.1 / 2025-03-03
2
+ ==================
3
+ - [minor] Only lint files in /src
4
+
1
5
  2.0.0 / 2025-03-03
2
6
  ==================
3
7
  - [major] ESLint 9.0 and flat config
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # polware eslint-config
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 npm package
9
+ 1. Install and initialize eslint running the following command:
10
10
 
11
- ```sh
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: ['**/*.ts', '**/*.tsx', '**/*.js'],
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: {
@@ -7,6 +7,7 @@ const customized = stylistic.configs.customize({
7
7
 
8
8
  export default [
9
9
  {
10
+ files: ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.js'],
10
11
  plugins: {
11
12
  '@stylistic': stylistic,
12
13
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeroenpol/eslint-config",
3
- "version": "2.0.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.21.0",
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",