@blockquote/eslint-config 0.1.1 → 0.1.5
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/README.md +19 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -79,6 +79,25 @@ import createConfig, {
|
|
|
79
79
|
@blockquote/eslint-config/test
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
### Overrides
|
|
83
|
+
|
|
84
|
+
The preset is a flat config array, so you can extend or override any rule by appending a config object. The last matching config wins:
|
|
85
|
+
|
|
86
|
+
```js
|
|
87
|
+
import {defineConfig} from 'eslint/config';
|
|
88
|
+
import createConfig from '@blockquote/eslint-config';
|
|
89
|
+
|
|
90
|
+
export default defineConfig([
|
|
91
|
+
...createConfig({tsconfigRootDir: import.meta.dirname}),
|
|
92
|
+
{
|
|
93
|
+
files: ['**/test/**/*.{js,ts}'],
|
|
94
|
+
rules: {
|
|
95
|
+
'import-x/no-extraneous-dependencies': 'warn',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
]);
|
|
99
|
+
```
|
|
100
|
+
|
|
82
101
|
## License
|
|
83
102
|
|
|
84
103
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Shared ESLint flat config for blockquote-web-components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -75,23 +75,23 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@eslint/js": "^10.0.1",
|
|
78
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
79
|
-
"@html-eslint/parser": "^0.
|
|
78
|
+
"@html-eslint/eslint-plugin": "^0.65.0",
|
|
79
|
+
"@html-eslint/parser": "^0.65.0",
|
|
80
80
|
"eslint-config-prettier": "^10.1.8",
|
|
81
|
-
"eslint-plugin-html": "^8.
|
|
81
|
+
"eslint-plugin-html": "^8.2.0",
|
|
82
82
|
"eslint-plugin-import-x": "^4.17.1",
|
|
83
83
|
"eslint-plugin-lit": "^2.3.1",
|
|
84
84
|
"eslint-plugin-lit-a11y": "^5.1.1",
|
|
85
85
|
"eslint-plugin-wc": "^3.1.0",
|
|
86
|
-
"globals": "^17.
|
|
87
|
-
"typescript-eslint": "^8.
|
|
86
|
+
"globals": "^17.12.0",
|
|
87
|
+
"typescript-eslint": "^8.69.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"eslint": "^10.
|
|
90
|
+
"eslint": "^10.9.1",
|
|
91
91
|
"typescript": "^6.0.3"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"eslint": "^10.
|
|
94
|
+
"eslint": "^10.9.1"
|
|
95
95
|
},
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|