@shakuroinc/eslint-config-react 6.0.0 → 6.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/.eslintrc.js +17 -8
- package/README.md +23 -6
- package/package.json +4 -4
package/.eslintrc.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
2
|
module.exports = {
|
|
3
|
-
|
|
3
|
+
parser: '@typescript-eslint/parser',
|
|
4
|
+
|
|
5
|
+
plugins: [
|
|
6
|
+
'@typescript-eslint',
|
|
7
|
+
'react',
|
|
8
|
+
'react-hooks',
|
|
9
|
+
'jsx-a11y',
|
|
10
|
+
'simple-import-sort',
|
|
11
|
+
'tailwindcss',
|
|
12
|
+
],
|
|
4
13
|
|
|
5
14
|
extends: [
|
|
6
|
-
'
|
|
15
|
+
'plugin:@typescript-eslint/recommended',
|
|
7
16
|
'plugin:react/recommended',
|
|
17
|
+
'plugin:prettier/recommended',
|
|
8
18
|
'plugin:jsx-a11y/recommended',
|
|
9
19
|
],
|
|
10
20
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
officialSorting: true,
|
|
21
|
+
parserOptions: {
|
|
22
|
+
ecmaVersion: 2020,
|
|
23
|
+
sourceType: 'module',
|
|
24
|
+
ecmaFeatures: {
|
|
25
|
+
jsx: true,
|
|
17
26
|
},
|
|
18
27
|
},
|
|
19
28
|
|
package/README.md
CHANGED
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
# @shakuroinc/eslint-config-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[Shakuro](https://shakuro.com/) eslint and prettier extensible basic config.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### Install package:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
`yarn add -D @shakuroinc/eslint-config-react`
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Install package dependencies:
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
`npx install-peerdeps @shakuroinc/eslint-config-react -d -Y`
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
> if you using yarn workspaces `npx install-peerdeps @shakuroinc/eslint-config-react -d -Y --extra-args "--ignore-workspace-root-check"`
|
|
16
|
+
|
|
17
|
+
### Configure `eslint`:
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
// .eslintrc.js
|
|
21
|
+
module.exports = {
|
|
22
|
+
extends: ['@shakuroinc/eslint-config-react'],
|
|
23
|
+
// extend config if needed
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Configure prettier:
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
// .prettierrc.js
|
|
31
|
+
module.exports = { ...require('@shakuroinc/eslint-config-react/prettier.config') };
|
|
32
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shakuroinc/eslint-config-react",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"main": ".eslintrc.js",
|
|
5
5
|
"author": "Shakuro team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"lint": "eslint . --ext .ts,.tsx,.js,.mdx,.md --ignore-path .gitignore",
|
|
13
|
-
"release": "git push --tags && npm publish --access public --new-version"
|
|
13
|
+
"release": "git push origin master --tags && npm publish --access public --new-version"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@shakuroinc/eslint-config-base": "^1.0.
|
|
17
|
+
"@shakuroinc/eslint-config-base": "^1.0.4",
|
|
18
18
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
19
19
|
"@typescript-eslint/parser": "^5.45.0",
|
|
20
20
|
"eslint": "^8.29.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"typescript": "^4.9.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@shakuroinc/eslint-config-base": "^1.0.
|
|
38
|
+
"@shakuroinc/eslint-config-base": "^1.0.4",
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
40
40
|
"@typescript-eslint/parser": "^5.45.0",
|
|
41
41
|
"eslint": "^8.29.0",
|