@jarsec/eslint-config 2.0.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/.eslintignore ADDED
@@ -0,0 +1 @@
1
+ .eslintrc.js
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @jarsec/eslint-config
2
+
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 550890f: Forcing a major version bump to fix publishing issues with the previous @jarsec/eslint-config package
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 79473ff: Initial package build
package/index.js ADDED
@@ -0,0 +1,69 @@
1
+ /* eslint-disable @typescript-eslint/naming-convention */
2
+ /* eslint-disable @typescript-eslint/no-require-imports */
3
+ /* eslint-disable @typescript-eslint/no-unsafe-call */
4
+
5
+ require("@rushstack/eslint-patch/modern-module-resolution");
6
+
7
+ const rules = {
8
+ "comma-dangle": "off",
9
+ "object-curly-spacing": "off",
10
+ "operator-linebreak": "off",
11
+ "no-mixed-spaces-and-tabs": "off",
12
+ "@typescript-eslint/comma-dangle": "off",
13
+ "@typescript-eslint/indent": "off",
14
+ "@typescript-eslint/quotes": "off",
15
+ "@typescript-eslint/semi": "off",
16
+ "@typescript-eslint/object-curly-spacing": "off",
17
+ "no-unused-vars": "off",
18
+ "no-warning-comments": "off",
19
+ "simple-import-sort/imports": "error",
20
+ "simple-import-sort/exports": "error",
21
+ "import/first": "error",
22
+ "import/newline-after-import": "error",
23
+ "import/no-duplicates": "error",
24
+ };
25
+
26
+ module.exports = {
27
+ parser: "@typescript-eslint/parser",
28
+ parserOptions: {
29
+ project: "./tsconfig.json",
30
+ },
31
+ env: {
32
+ node: true,
33
+ },
34
+ plugins: [
35
+ "@typescript-eslint/eslint-plugin",
36
+ "import",
37
+ "simple-import-sort",
38
+ "prettier",
39
+ ],
40
+ extends: [
41
+ "eslint:recommended",
42
+ "plugin:@typescript-eslint/eslint-recommended",
43
+ "plugin:@typescript-eslint/recommended",
44
+ "plugin:import/recommended",
45
+ "plugin:import/typescript",
46
+ "xo",
47
+ "xo-typescript",
48
+ "plugin:prettier/recommended",
49
+ ],
50
+ settings: {
51
+ "import/resolver": {
52
+ typescript: true,
53
+ node: true,
54
+ },
55
+ },
56
+ rules,
57
+ overrides: [
58
+ {
59
+ files: ["**/*/*.{test,spec}.ts"],
60
+ rules: {
61
+ ...rules,
62
+ "@typescript-eslint/no-unsafe-assignment": "off",
63
+ "@typescript-eslint/no-unsafe-call": "off",
64
+ "@typescript-eslint/no-unsafe-member-access": "off",
65
+ "@typescript-eslint/unbound-method": "off",
66
+ },
67
+ },
68
+ ],
69
+ };
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@jarsec/eslint-config",
3
+ "version": "2.0.0",
4
+ "description": "jsec's eslint configurations",
5
+ "author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
6
+ "main": "index.js",
7
+ "license": "MIT",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "dependencies": {
12
+ "@rushstack/eslint-patch": "^1.3.2",
13
+ "@typescript-eslint/eslint-plugin": "^6.2.1",
14
+ "@typescript-eslint/parser": "^6.2.1",
15
+ "eslint-config-prettier": "^8.5.0",
16
+ "eslint-config-xo": "^0.43.1",
17
+ "eslint-config-xo-typescript": "^1.0.1",
18
+ "eslint-import-resolver-typescript": "^3.5.5",
19
+ "eslint-plugin-import": "^2.28.0",
20
+ "eslint-plugin-prettier": "^5.0.0",
21
+ "eslint-plugin-simple-import-sort": "^10.0.0"
22
+ },
23
+ "devDependencies": {
24
+ "@types/node": "^20.4.7",
25
+ "eslint": "^8.46.0",
26
+ "typescript": "^5.1.6"
27
+ },
28
+ "peerDependencies": {
29
+ "eslint": "^8.46.0",
30
+ "typescript": "^5.1.6"
31
+ }
32
+ }