@will-stone/eslint-config 0.3.0 → 0.4.0
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 +10 -0
- package/eslint-config.js +4 -7
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
package/eslint-config.js
CHANGED
|
@@ -3,6 +3,7 @@ import fs from 'node:fs'
|
|
|
3
3
|
import tsPlugin from '@typescript-eslint/eslint-plugin'
|
|
4
4
|
import tsParser from '@typescript-eslint/parser'
|
|
5
5
|
import astroParser from 'astro-eslint-parser'
|
|
6
|
+
import gitignore from 'eslint-config-flat-gitignore'
|
|
6
7
|
import astroPlugin, { configs } from 'eslint-plugin-astro'
|
|
7
8
|
import importPlugin from 'eslint-plugin-import'
|
|
8
9
|
import jestPlugin from 'eslint-plugin-jest'
|
|
@@ -86,6 +87,8 @@ const isNode =
|
|
|
86
87
|
isNodeEngine || fs.existsSync('.nvmrc') || fs.existsSync('.node-version')
|
|
87
88
|
|
|
88
89
|
export default [
|
|
90
|
+
gitignore(),
|
|
91
|
+
|
|
89
92
|
// Global
|
|
90
93
|
{
|
|
91
94
|
settings: {
|
|
@@ -95,12 +98,6 @@ export default [
|
|
|
95
98
|
},
|
|
96
99
|
},
|
|
97
100
|
|
|
98
|
-
// Global ignore patterns
|
|
99
|
-
{
|
|
100
|
-
// Common build folders
|
|
101
|
-
ignores: ['**/.webpack', '**/dist', '**/.astro', '**/.next'],
|
|
102
|
-
},
|
|
103
|
-
|
|
104
101
|
// Base
|
|
105
102
|
{
|
|
106
103
|
files: ['**/*.{js,cjs,mjs,jsx,ts,tsx,astro}'],
|
|
@@ -147,7 +144,7 @@ export default [
|
|
|
147
144
|
parser: astroParser,
|
|
148
145
|
parserOptions: {
|
|
149
146
|
extraFileExtensions: ['.astro'],
|
|
150
|
-
parser:
|
|
147
|
+
parser: tsParser,
|
|
151
148
|
},
|
|
152
149
|
},
|
|
153
150
|
plugins: { astro: astroPlugin },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Will Stone's ESLint config, using the Flat Config style.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ESLint"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@typescript-eslint/parser": "^6.7.0",
|
|
26
26
|
"astro-eslint-parser": "^0.15.0",
|
|
27
27
|
"confusing-browser-globals": "^1.0.11",
|
|
28
|
+
"eslint-config-flat-gitignore": "^0.1.0",
|
|
28
29
|
"eslint-plugin-astro": "^0.29.0",
|
|
29
30
|
"eslint-plugin-import": "^2.28.1",
|
|
30
31
|
"eslint-plugin-jest": "^27.4.0",
|