@aiou/eslint-config 0.0.0-beta-20230621080119

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.
Files changed (3) hide show
  1. package/README.md +59 -0
  2. package/index.js +8 -0
  3. package/package.json +26 -0
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # @aiou/eslint-config
2
+ *my eslint config*
3
+
4
+ [![npm](https://img.shields.io/npm/v/@aiou/eslint-config)](https://www.npmjs.com/package/@aiou/eslint-config) [![GitHub](https://img.shields.io/npm/l/@aiou/eslint-config)](https://github.com/JiangWeixian/eslint-config/tree/master/packages/default)
5
+
6
+ ## features
7
+
8
+ - 🙈 built in ignore patterns from [nodejs's gitignore](https://github.com/github/gitignore/blob/master/Node.gitignore) and with common eslint ignore patterns like `jest`, etc..
9
+ - 💅 friendly fix reporter
10
+
11
+ <div align='center'>
12
+
13
+ <img src="https://user-images.githubusercontent.com/6839576/148364688-6a9fa8ac-94a3-4897-89fc-a3b64606e93c.png" width="400px" />
14
+
15
+ *â–² @aiou/eslint-plugin-progress*
16
+
17
+ </div>
18
+
19
+ ## rules
20
+
21
+ extends from
22
+
23
+ ```tsx
24
+ eslint-config-standard
25
+ eslint-plugin-eslint-comments
26
+ eslint-plugin-html
27
+ eslint-plugin-import
28
+ eslint-plugin-markdown
29
+ eslint-plugin-simple-import-sort
30
+ eslint-plugin-import-newlines
31
+ eslint-plugin-unused-imports
32
+ eslint-plugin-jsonc
33
+ eslint-plugin-n (forked eslint-plugin-node)
34
+ eslint-plugin-promise
35
+ eslint-plugin-unicorn
36
+ eslint-plugin-yml
37
+ eslint-plugin-react
38
+ @next/eslint-plugin-next (enabled when next found)
39
+ eslint-plugin-react-hooks
40
+ eslint-plugin-tailwindcss
41
+ @typescript-eslint/eslint-plugin
42
+ ```
43
+
44
+ ## install
45
+
46
+ ```console
47
+ npm install @aiou/eslint-config --save-dev
48
+ ```
49
+
50
+ ## usage
51
+
52
+ in `.eslintrc.js`
53
+
54
+ ```
55
+ module.exports = {
56
+ "extends": ["@aiou"]
57
+ }
58
+ ```
59
+
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ extends: ['@aiou/eslint-config-react'],
3
+ plugins: ['@aiou/progress'],
4
+ rules: {
5
+ '@aiou/progress/activate': 1,
6
+ },
7
+ ignorePatterns: require('@aiou/eslint-ignore'),
8
+ }
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@aiou/eslint-config",
3
+ "version": "0.0.0-beta-20230621080119",
4
+ "description": "eslint config for aiou template",
5
+ "keywords": [],
6
+ "license": "MIT",
7
+ "author": "JW <jiangweixian1994@gmail.com> (https://github.com/jiangweixian/)",
8
+ "files": [
9
+ "index.js"
10
+ ],
11
+ "main": "index.js",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "peerDependencies": {
16
+ "eslint": ">=7.4.0 || ^8"
17
+ },
18
+ "dependencies": {
19
+ "@aiou/eslint-config-react": "0.0.0-beta-20230621080119",
20
+ "@aiou/eslint-ignore": "0.3.2",
21
+ "@aiou/eslint-plugin-progress": "0.3.1"
22
+ },
23
+ "devDependencies": {
24
+ "eslint": "^8.26.0"
25
+ }
26
+ }