eslint-config-tamia 9.1.21 → 9.1.22
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 +2 -2
- package/package.json +4 -4
- package/rules/unicorn.mjs +10 -2
package/Readme.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# eslint-config-tamia
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/eslint-config-tamia) [](https://www.npmjs.com/package/eslint-config-tamia) [](https://github.com/sapegin/eslint-config-tamia/actions)
|
|
4
4
|
|
|
5
|
-
This package provides
|
|
5
|
+
This package provides a shared ESLint config that I use on all my projects.
|
|
6
6
|
|
|
7
7
|
**Should be used with [Prettier](https://prettier.io/), has no own code style rules.**
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-tamia",
|
|
3
3
|
"description": "Tâmia ESLint config",
|
|
4
|
-
"version": "9.1.
|
|
4
|
+
"version": "9.1.22",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.mjs",
|
|
7
7
|
"exports": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "https://github.com/
|
|
28
|
+
"url": "https://github.com/sapegin/eslint-config-tamia"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"eslintconfig",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
},
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"bugs": {
|
|
40
|
-
"url": "https://github.com/
|
|
40
|
+
"url": "https://github.com/sapegin/eslint-config-tamia/issues"
|
|
41
41
|
},
|
|
42
|
-
"homepage": "https://github.com/
|
|
42
|
+
"homepage": "https://github.com/sapegin/eslint-config-tamia",
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/eslint__js": "^8.42.3",
|
|
45
45
|
"@types/react": "^18.3.5",
|
package/rules/unicorn.mjs
CHANGED
|
@@ -4,8 +4,16 @@ export default [
|
|
|
4
4
|
eslintPluginUnicorn.configs['flat/recommended'],
|
|
5
5
|
{
|
|
6
6
|
rules: {
|
|
7
|
-
//
|
|
8
|
-
'unicorn/filename-case':
|
|
7
|
+
// Require camelCase (getIt.ts) and PascalCase (Box.tsx) file names
|
|
8
|
+
'unicorn/filename-case': [
|
|
9
|
+
'error',
|
|
10
|
+
{
|
|
11
|
+
cases: {
|
|
12
|
+
camelCase: true,
|
|
13
|
+
pascalCase: true,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
9
17
|
// Opinionated, sometimes you need it
|
|
10
18
|
'unicorn/no-array-reduce': 'off',
|
|
11
19
|
// This is too opinionated
|