quidproquo-eslint-config 0.0.233

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.
@@ -0,0 +1,2 @@
1
+ lib
2
+ node_modules
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # eslint config
2
+
3
+ Not for prod
@@ -0,0 +1,16 @@
1
+ export const overrides = {
2
+ rules: {
3
+ // Generators
4
+ 'require-yield': 'off',
5
+
6
+ // Dev Exp
7
+ '@typescript-eslint/no-explicit-any': 'off',
8
+ '@typescript-eslint/no-unused-vars': 'off',
9
+ 'prefer-const': 'off',
10
+
11
+ // Probably remove
12
+ '@typescript-eslint/no-unnecessary-type-arguments': 'off',
13
+ '@typescript-eslint/no-unnecessary-generics': 'off',
14
+ '@typescript-eslint/no-empty-object-type': 'off',
15
+ },
16
+ };
@@ -0,0 +1,56 @@
1
+ import simpleImportSort from 'eslint-plugin-simple-import-sort';
2
+ import globals from 'globals';
3
+ import tseslint from 'typescript-eslint';
4
+ import pluginJs from '@eslint/js';
5
+
6
+ import { overrides } from './config/overrides.mjs';
7
+
8
+ export default [
9
+ { ignores: ['dist/', 'lib/'] },
10
+ { files: ['**/*.{js,mjs,cjs,ts}'] },
11
+ { languageOptions: { globals: { ...globals.browser, ...globals.node } } },
12
+ pluginJs.configs.recommended,
13
+ ...tseslint.configs.recommended,
14
+
15
+ {
16
+ plugins: {
17
+ 'simple-import-sort': simpleImportSort,
18
+ },
19
+ rules: {
20
+ 'simple-import-sort/imports': [
21
+ 'error',
22
+ {
23
+ groups: [
24
+ ['^quidproquo'],
25
+ [
26
+ '^\\u0000[^.]',
27
+ // Packages. `react`\`react-dom` packages come first.
28
+ '^react(-dom)?$',
29
+ '^prop-types',
30
+ // Internal packages come last.
31
+ '^\\w',
32
+ '^@',
33
+ ],
34
+ [
35
+ // aliases first
36
+ '^[~]',
37
+ '^fixtures',
38
+ // Parent imports. Put `..` last.
39
+ '^\\.\\.(?!/?$)',
40
+ '^\\.\\./?$',
41
+ // Other relative imports. Put same-folder imports and `.` last.
42
+ '^\\./(?=.*/)(?!/?$)',
43
+ '^\\.(?!/?$)',
44
+ '^\\./?$',
45
+ // With Side effect imports
46
+ '^\\u0000\\.',
47
+ ],
48
+ ],
49
+ },
50
+ ],
51
+ 'simple-import-sort/exports': 'error',
52
+ },
53
+ },
54
+
55
+ overrides,
56
+ ];
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "quidproquo-eslint-config",
3
+ "version": "0.0.233",
4
+ "description": "eslint config for quidproquo projects.",
5
+ "main": "eslint.config.mjs",
6
+ "scripts": {
7
+ "test": "",
8
+ "clean": "",
9
+ "build": "",
10
+ "watch": "",
11
+ "lint": "",
12
+ "lint:fix": "",
13
+ "format": ""
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/joe-coady/quidproquo.git"
18
+ },
19
+ "keywords": [
20
+ "eslint"
21
+ ],
22
+ "author": "joecoady",
23
+ "license": "ISC",
24
+ "devDependencies": {
25
+ "@eslint/js": "^9.13.0",
26
+ "eslint": "^9.13.0",
27
+ "eslint-plugin-simple-import-sort": "^12.1.1",
28
+ "globals": "^15.11.0",
29
+ "typescript-eslint": "^8.11.0"
30
+ }
31
+ }