@atomicsmash/coding-standards 2.0.0 → 3.1.0
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.cjs +2 -3
- package/CHANGELOG.md +24 -0
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +4 -21
- package/eslint/index.js +0 -64
package/.eslintrc.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const eslintConfig = require("@atomicsmash/coding-standards").eslintConfig;
|
|
2
1
|
module.exports = {
|
|
3
|
-
|
|
4
|
-
ignorePatterns: [
|
|
2
|
+
extends: ["@atomicsmash/eslint-config"],
|
|
3
|
+
ignorePatterns: ["**/*.d.ts"],
|
|
5
4
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atomicsmash/coding-standards
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#10](https://github.com/AtomicSmash/packages/pull/10) [`efea731`](https://github.com/AtomicSmash/packages/commit/efea7317cbf75061fb74280a56093fd66247de5f) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Remove bundleDependencies
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`efea731`](https://github.com/AtomicSmash/packages/commit/efea7317cbf75061fb74280a56093fd66247de5f)]:
|
|
12
|
+
- @atomicsmash/eslint-config@1.1.0
|
|
13
|
+
|
|
14
|
+
## 3.0.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- [#7](https://github.com/AtomicSmash/packages/pull/7) [`a241190`](https://github.com/AtomicSmash/packages/commit/a2411903ff10daeb54836125a994616b4caa0936) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Split ESLint out into its own package
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#6](https://github.com/AtomicSmash/packages/pull/6) [`69dd3da`](https://github.com/AtomicSmash/packages/commit/69dd3da1c61f8916daccdbab27b567b4e5677df5) Thanks [@mikeybinns](https://github.com/mikeybinns)! - Remove browserslist dependency
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`a241190`](https://github.com/AtomicSmash/packages/commit/a2411903ff10daeb54836125a994616b4caa0936)]:
|
|
25
|
+
- @atomicsmash/eslint-config@1.0.0
|
|
26
|
+
|
|
3
27
|
## 2.0.0
|
|
4
28
|
|
|
5
29
|
### Major Changes
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicsmash/coding-standards",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "A collection of coding standards configurations.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"
|
|
8
|
+
"@atomicsmash/browserslist-config": "^1.0.0",
|
|
9
|
+
"@atomicsmash/eslint-config": "^1.1.0",
|
|
9
10
|
"@commitlint/cli": "^17.0.3",
|
|
10
11
|
"@commitlint/config-conventional": "^17.0.3",
|
|
11
|
-
"prettier": "^2.7.1"
|
|
12
|
-
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
|
13
|
-
"@typescript-eslint/parser": "^5.31.0",
|
|
14
|
-
"eslint-config-prettier": "^8.5.0",
|
|
15
|
-
"eslint-import-resolver-typescript": "^3.3.0",
|
|
16
|
-
"eslint-plugin-import": "^2.26.0"
|
|
12
|
+
"prettier": "^2.7.1"
|
|
17
13
|
},
|
|
18
14
|
"devDependencies": {
|
|
19
|
-
"browserslist": "^4.21.5",
|
|
20
15
|
"@cspell/cspell-types": "^6.18.1"
|
|
21
16
|
},
|
|
22
|
-
"bundledDependencies": [
|
|
23
|
-
"@commitlint/cli",
|
|
24
|
-
"@commitlint/config-conventional",
|
|
25
|
-
"eslint",
|
|
26
|
-
"eslint-config-prettier",
|
|
27
|
-
"eslint-import-resolver-typescript",
|
|
28
|
-
"eslint-plugin-import",
|
|
29
|
-
"prettier",
|
|
30
|
-
"@typescript-eslint/eslint-plugin",
|
|
31
|
-
"@typescript-eslint/parser",
|
|
32
|
-
"@atomicsmash/browserslist-config"
|
|
33
|
-
],
|
|
34
17
|
"keywords": [
|
|
35
18
|
"atomic",
|
|
36
19
|
"smash",
|
package/eslint/index.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
ignorePatterns: [".eslintrc.cjs", "dist/**/*", "**/*.config.*"],
|
|
3
|
-
plugins: ["import"],
|
|
4
|
-
extends: ["eslint:recommended", "prettier"],
|
|
5
|
-
env: {
|
|
6
|
-
browser: true,
|
|
7
|
-
commonjs: true,
|
|
8
|
-
node: true,
|
|
9
|
-
es2017: true,
|
|
10
|
-
},
|
|
11
|
-
rules: {
|
|
12
|
-
"no-case-declarations": ["off"],
|
|
13
|
-
"import/order": [
|
|
14
|
-
"error",
|
|
15
|
-
{
|
|
16
|
-
alphabetize: {
|
|
17
|
-
order: "asc",
|
|
18
|
-
},
|
|
19
|
-
groups: [
|
|
20
|
-
"type",
|
|
21
|
-
"builtin",
|
|
22
|
-
"external",
|
|
23
|
-
"internal",
|
|
24
|
-
"parent",
|
|
25
|
-
["sibling", "index"],
|
|
26
|
-
],
|
|
27
|
-
"newlines-between": "ignore",
|
|
28
|
-
pathGroups: [],
|
|
29
|
-
pathGroupsExcludedImportTypes: [],
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
"prefer-const": ["error"],
|
|
33
|
-
"no-var": ["error"],
|
|
34
|
-
"import/no-duplicates": "warn",
|
|
35
|
-
},
|
|
36
|
-
overrides: [
|
|
37
|
-
{
|
|
38
|
-
files: ["*.ts", "*.tsx", "*.mts", "*.cts"],
|
|
39
|
-
parser: "@typescript-eslint/parser",
|
|
40
|
-
plugins: ["@typescript-eslint", "import"],
|
|
41
|
-
extends: [
|
|
42
|
-
"eslint:recommended",
|
|
43
|
-
"plugin:@typescript-eslint/recommended",
|
|
44
|
-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
45
|
-
"plugin:import/typescript",
|
|
46
|
-
"prettier",
|
|
47
|
-
],
|
|
48
|
-
rules: {
|
|
49
|
-
"@typescript-eslint/naming-convention": [
|
|
50
|
-
"error",
|
|
51
|
-
{ selector: "variableLike", format: ["camelCase"] },
|
|
52
|
-
{ selector: "function", format: ["camelCase", "PascalCase"] },
|
|
53
|
-
{ selector: "typeLike", format: ["PascalCase"] },
|
|
54
|
-
{
|
|
55
|
-
selector: "variable",
|
|
56
|
-
types: ["boolean"],
|
|
57
|
-
format: ["PascalCase"],
|
|
58
|
-
prefix: ["is", "should", "has", "can", "did", "will"],
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
};
|