eslint-config-arklint 1.2.2 → 1.3.1

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/.yarnrc.yml ADDED
@@ -0,0 +1,3 @@
1
+ nodeLinker: node-modules
2
+
3
+ yarnPath: .yarn/releases/yarn-4.1.0.cjs
package/README.md CHANGED
@@ -8,7 +8,12 @@ My personal ESLint configuration. Most of it is based on [eslint-config-react-ap
8
8
  ```shell
9
9
  yarn add eslint-config-arklint -D
10
10
  ```
11
- ESLint and all the plugins used in the config are dependencies, so no need to install them. I'm aware that ESLint is supposed to be in the `peerDependencies`, but since I'm maintaining my own packages, I'd rather have everything in one place for when I update the versions.
11
+
12
+ You also need to add [ESLint](https://github.com/eslint/eslint) in your `devDependencies`:
13
+
14
+ ```shell
15
+ yarn add eslint -D
16
+ ```
12
17
 
13
18
  ## Usage
14
19
 
@@ -33,19 +33,19 @@ module.exports = {
33
33
  message: "The main description should be written in the third person, begin with a capital letter and end with a period.",
34
34
  match: "/^[A-Z][.^\\w]*s\\b.*\\.$/us"
35
35
  },
36
- matchDescription: "[A-Z].*|^\\w+([-]*\\w)*( \\| \\w+([-]*\\w)*)*$",
36
+ matchDescription: "^[A-Z].*[^\\.]$",
37
37
  tags: {
38
38
  param: {
39
- message: "@param description should begin with a capital letter or be a list of options separated by pipes.",
39
+ message: "@param description should begin with a capital letter and not end with a period.",
40
40
  match: true
41
41
  },
42
42
  property: {
43
- message: "@property description should begin with a capital letter or be a list of options separated by pipes.",
43
+ message: "@property description should begin with a capital letter and not end with a period.",
44
44
  match: true
45
45
  },
46
46
  returns: {
47
- message: "@returns description should begin with a capital letter.",
48
- match: "[A-Z].*"
47
+ message: "@returns description should begin with a capital letter and not end with a period.",
48
+ match: true
49
49
  }
50
50
  }
51
51
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-arklint",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "author": "Arkellys",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -9,18 +9,27 @@
9
9
  "url": "git+https://github.com/Arkellys/eslint-config-arklint.git"
10
10
  },
11
11
  "homepage": "https://github.com/Arkellys/eslint-config-arklint#readme",
12
+ "scripts": {
13
+ "lint": "eslint ."
14
+ },
12
15
  "dependencies": {
13
16
  "@rushstack/eslint-patch": "^1.7.2",
14
17
  "confusing-browser-globals": "^1.0.11",
15
- "eslint": "^8.56.0",
16
18
  "eslint-plugin-import": "^2.29.1",
17
- "eslint-plugin-jsdoc": "^48.0.4",
19
+ "eslint-plugin-jsdoc": "^48.1.0",
18
20
  "eslint-plugin-jsx-a11y": "^6.8.0",
19
21
  "eslint-plugin-react": "^7.33.2",
20
22
  "eslint-plugin-react-hooks": "^4.6.0",
21
23
  "eslint-plugin-sort-imports-es6-autofix": "^0.6.0"
22
24
  },
25
+ "devDependencies": {
26
+ "eslint": "^8.56.0"
27
+ },
28
+ "peerDependencies": {
29
+ "eslint": "^8.56.0"
30
+ },
23
31
  "eslintConfig": {
24
32
  "extends": "./index.js"
25
- }
33
+ },
34
+ "packageManager": "yarn@4.1.0"
26
35
  }