@danielwaltz/eslint-config 0.0.6 → 0.0.7
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 +16 -0
- package/README.md +2 -2
- package/dist/index.mjs +19 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v0.0.7
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.0.6...v0.0.7)
|
|
7
|
+
|
|
8
|
+
### 🚀 Enhancements
|
|
9
|
+
|
|
10
|
+
- Support camel case file names ([ea01564](https://github.com/danielwaltz/eslint-config/commit/ea01564))
|
|
11
|
+
|
|
12
|
+
### 📖 Documentation
|
|
13
|
+
|
|
14
|
+
- Include info about sxzz config ([8025acd](https://github.com/danielwaltz/eslint-config/commit/8025acd))
|
|
15
|
+
|
|
16
|
+
### ❤️ Contributors
|
|
17
|
+
|
|
18
|
+
- Daniel Waltz ([@danielwaltz](http://github.com/danielwaltz))
|
|
19
|
+
|
|
4
20
|
## v0.0.6
|
|
5
21
|
|
|
6
22
|
[compare changes](https://github.com/danielwaltz/eslint-config/compare/v0.0.5...v0.0.6)
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @danielwaltz/eslint-config
|
|
2
2
|
|
|
3
|
-
My personal ESLint configuration.
|
|
3
|
+
My personal ESLint configuration. Extends from [@sxzz/eslint-config](https://github.com/sxzz/eslint-config).
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```shell
|
|
8
|
-
npx -y nypm@latest i -D eslint
|
|
8
|
+
npx -y nypm@latest i -D eslint @danielwaltz/eslint-config
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
package/dist/index.mjs
CHANGED
|
@@ -2,9 +2,27 @@ import { sxzz, hasVue } from '@sxzz/eslint-config';
|
|
|
2
2
|
export * from '@sxzz/eslint-config';
|
|
3
3
|
import { composer } from 'eslint-flat-config-utils';
|
|
4
4
|
|
|
5
|
+
function unicornConfigs() {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: "danielwaltz/unicorn",
|
|
9
|
+
rules: {
|
|
10
|
+
"unicorn/filename-case": [
|
|
11
|
+
"error",
|
|
12
|
+
{
|
|
13
|
+
cases: { camelCase: true, kebabCase: true, pascalCase: true },
|
|
14
|
+
ignore: [/^[A-Z]+\..*$/, /import_map\.json/]
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
|
|
5
22
|
function vueConfigs() {
|
|
6
23
|
return [
|
|
7
24
|
{
|
|
25
|
+
name: "danielwaltz/vue",
|
|
8
26
|
files: ["**/*.vue"],
|
|
9
27
|
rules: {
|
|
10
28
|
"vue/block-lang": ["error", { script: { lang: ["ts", "tsx"] } }],
|
|
@@ -92,6 +110,7 @@ function defineFlatConfigs(...configs) {
|
|
|
92
110
|
function danielwaltz(...userConfigs) {
|
|
93
111
|
const composer = defineFlatConfigs(...userConfigs);
|
|
94
112
|
composer.append(sxzz());
|
|
113
|
+
composer.append(unicornConfigs());
|
|
95
114
|
if (hasVue)
|
|
96
115
|
composer.append(vueConfigs());
|
|
97
116
|
return composer;
|