@plugjs/eslint-plugin 0.1.23 → 0.2.0-beta.2

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,187 @@
1
+ import globals from 'globals'
2
+ import unicornPlugin from 'eslint-plugin-unicorn'
3
+
4
+ import importxPlugin from '../bundles/eslint-plugin-import-x.cjs'
5
+ import stylisticPlugin from '../bundles/stylistic-eslint-plugin.cjs'
6
+ import '../bundles/eslint-import-resolver-typescript.cjs' // preload!
7
+
8
+ /* ========================================================================== */
9
+
10
+ /** Basic configuration of ESLint rules. */
11
+ export const base = {
12
+ name: 'plugjs-base',
13
+
14
+ languageOptions: {
15
+ globals: globals.es2024,
16
+ },
17
+
18
+ rules: {
19
+ 'camelcase': [ 'error', {
20
+ properties: 'never',
21
+
22
+ } ],
23
+ 'curly': [ 'error', 'multi-line' ],
24
+ 'new-cap': 'error',
25
+ 'no-caller': 'error',
26
+ 'no-cond-assign': 'off', // overrides eslint recommended
27
+ 'no-console': 'warn',
28
+ 'no-debugger': 'warn',
29
+ 'no-extend-native': 'error',
30
+ 'no-extra-bind': 'error',
31
+ 'no-multi-str': 'error',
32
+ 'no-new-native-nonconstructor': 'error',
33
+ 'no-new-wrappers': 'error',
34
+ 'no-object-constructor': 'error',
35
+ 'no-template-curly-in-string': 'error',
36
+ 'no-throw-literal': 'error',
37
+ 'no-useless-concat': 'error',
38
+ 'no-var': 'error',
39
+ 'no-warning-comments': 'warn',
40
+ 'one-var': [ 'error', 'never' ],
41
+ 'prefer-const': [ 'error', {
42
+ destructuring: 'all',
43
+ } ],
44
+ 'prefer-promise-reject-errors': 'error',
45
+ 'prefer-rest-params': 'error',
46
+ 'prefer-spread': 'error',
47
+ },
48
+ }
49
+
50
+ /* ========================================================================== */
51
+
52
+ /** Style shared between JavaScript and TypeScript. */
53
+ export const stylistic = {
54
+ name: 'plugjs-stylistic',
55
+
56
+ plugins: {
57
+ '@stylistic': stylisticPlugin,
58
+ },
59
+
60
+ rules: {
61
+ '@stylistic/array-bracket-newline': 'off',
62
+ '@stylistic/array-bracket-spacing': [ 'error', 'always' ],
63
+ '@stylistic/arrow-parens': [ 'error', 'always' ],
64
+ '@stylistic/block-spacing': [ 'error', 'always' ],
65
+ '@stylistic/brace-style': 'error',
66
+ '@stylistic/comma-dangle': [ 'error', 'always-multiline' ],
67
+ '@stylistic/comma-spacing': 'error',
68
+ '@stylistic/comma-style': 'error',
69
+ '@stylistic/computed-property-spacing': 'error',
70
+ '@stylistic/eol-last': [ 'error', 'always' ],
71
+ '@stylistic/func-call-spacing': 'error',
72
+ '@stylistic/generator-star-spacing': [ 'error', 'after' ],
73
+ '@stylistic/indent': [ 'error', 2, {
74
+ CallExpression: {
75
+ 'arguments': 2,
76
+ },
77
+ FunctionDeclaration: {
78
+ 'body': 1,
79
+ 'parameters': 2,
80
+ },
81
+ FunctionExpression: {
82
+ 'body': 1,
83
+ 'parameters': 2,
84
+ },
85
+ MemberExpression: 2,
86
+ ObjectExpression: 1,
87
+ SwitchCase: 1,
88
+ ignoredNodes: [
89
+ 'ConditionalExpression',
90
+ ],
91
+ } ],
92
+ '@stylistic/key-spacing': 'error',
93
+ '@stylistic/keyword-spacing': 'error',
94
+ '@stylistic/linebreak-style': 'error',
95
+ '@stylistic/no-mixed-spaces-and-tabs': 'error',
96
+ '@stylistic/no-multi-spaces': 'error',
97
+ '@stylistic/no-multiple-empty-lines': [ 'error', { 'max': 2, 'maxBOF': 0, 'maxEOF': 1 } ],
98
+ '@stylistic/no-tabs': 'error',
99
+ '@stylistic/no-trailing-spaces': 'error',
100
+ '@stylistic/object-curly-spacing': [ 'error', 'always' ],
101
+ '@stylistic/operator-linebreak': [ 'error', 'after' ],
102
+ '@stylistic/padded-blocks': [ 'error', 'never' ],
103
+ '@stylistic/quote-props': [ 'error', 'consistent' ],
104
+ '@stylistic/quotes': [ 'error', 'single', { 'allowTemplateLiterals': false } ],
105
+ '@stylistic/semi': [ 'error', 'never' ],
106
+ '@stylistic/semi-spacing': 'error',
107
+ '@stylistic/space-before-blocks': 'error',
108
+ '@stylistic/space-before-function-paren': [ 'error', {
109
+ asyncArrow: 'always',
110
+ anonymous: 'never',
111
+ named: 'never',
112
+ } ],
113
+ '@stylistic/spaced-comment': [ 'error', 'always', { 'markers': [ '/ <reference' ] } ],
114
+ '@stylistic/switch-colon-spacing': 'error',
115
+ '@stylistic/rest-spread-spacing': 'error',
116
+ '@stylistic/yield-star-spacing': [ 'error', 'after' ],
117
+ },
118
+ }
119
+
120
+ /* ========================================================================== */
121
+
122
+ /** Extra niceties from the ESLint Unicorn plugin. */
123
+ export const unicorn = {
124
+ name: 'plugjs-unicorn',
125
+
126
+ plugins: {
127
+ 'unicorn': unicornPlugin,
128
+ },
129
+
130
+ rules: {
131
+ 'unicorn/empty-brace-spaces': 'error',
132
+ 'unicorn/no-instanceof-array': 'error',
133
+ 'unicorn/prefer-node-protocol': 'error',
134
+ },
135
+ }
136
+
137
+ /* ========================================================================== */
138
+
139
+ /** Defines the style of our imports. */
140
+ export const importx = {
141
+ name: 'plugjs-importx',
142
+
143
+ plugins: {
144
+ 'import-x': importxPlugin,
145
+ },
146
+
147
+ settings: {
148
+ 'import-x/extensions': [ '.ts', '.cts', '.mts', '.js', '.cjs', '.mjs' ],
149
+ 'import-x/external-module-folders': [ 'node_modules', 'node_modules/@types' ],
150
+ 'import-x/parsers': {
151
+ '@typescript-eslint/parser': [ '.ts', '.cts', '.mts' ],
152
+ 'espree': [ '.js', '.mjs', '.cjs' ],
153
+ },
154
+ 'import-x/resolver': {
155
+ // point to our bundled-in typescript *and* node resolvers...
156
+ '../bundles/eslint-import-resolver-typescript.cjs': true,
157
+ '../bundles/eslint-import-resolver-node.cjs': true,
158
+ },
159
+ },
160
+
161
+ rules: {
162
+ 'import-x/consistent-type-specifier-style': [ 'error', 'prefer-top-level' ],
163
+ 'import-x/no-cycle': [ 'error' ],
164
+ 'import-x/no-duplicates': [ 'error' ],
165
+ 'import-x/no-extraneous-dependencies': [ 'off' ],
166
+ 'import-x/order': [ 'error', {
167
+ 'groups': [ 'builtin', 'external', 'internal', [ 'parent', 'sibling' ], 'index', 'object', 'type' ],
168
+ 'newlines-between': 'always',
169
+ 'warnOnUnassignedImports': true,
170
+ } ],
171
+ },
172
+ }
173
+
174
+ /* ========================================================================== */
175
+
176
+ /**
177
+ * Base module: declares all the common rules shared between JavaScript and
178
+ * TypeScript code bases.
179
+ *
180
+ * This module includes these configurations:
181
+ *
182
+ * * `plugjs-base`: basic configuration of ESLint rules.
183
+ * * `plugjs-stylistic`: style shared between JavaScript and TypeScript.
184
+ * * `plugjs-unicorn`: extra niceties from the ESLint Unicorn plugin.
185
+ * * `plugjs-importx`: defines the style of our imports.
186
+ */
187
+ export default [ base, stylistic, unicorn, importx ]
@@ -0,0 +1,51 @@
1
+ /** Basic extra rules for JavaScript sources. */
2
+ export const javascript = {
3
+ name: 'plugjs-javascript',
4
+
5
+ files: [ '*.js', '*.cjs', '*.mjs' ],
6
+
7
+ rules: {
8
+ 'guard-for-in': 'error',
9
+ 'no-array-constructor': 'error',
10
+ 'no-invalid-this': 'error',
11
+ 'no-unused-expressions': 'error',
12
+ 'no-unused-vars': [ 'error', {
13
+ args: 'after-used',
14
+ argsIgnorePattern: '^_',
15
+ } ],
16
+ 'strict': [ 'error', 'global' ],
17
+ },
18
+ }
19
+
20
+ /** Marks `*.cjs` files as `commonjs`. */
21
+ export const javascriptCommonJs = {
22
+ name: 'plugjs-javascript-cjs',
23
+
24
+ files: [ '*.cjs' ],
25
+
26
+ languageOptions: {
27
+ sourceType: 'commonjs',
28
+ },
29
+ }
30
+
31
+ /** Marks `*.mjs` files as `module`. */
32
+ export const javascriptModule = {
33
+ name: 'plugjs-javascript-esm',
34
+
35
+ files: [ '*.mjs' ],
36
+
37
+ languageOptions: {
38
+ sourceType: 'module',
39
+ },
40
+ }
41
+
42
+ /**
43
+ * JavaScript module: declares all the common rules for JavaScript code bases.
44
+ *
45
+ * This module includes these configurations:
46
+ *
47
+ * * `plugjs-javascript`: basic extra rules for JavaScript sources.
48
+ * * `plugjs-javascript-cjs`: marks `*.cjs` files as `commonjs`.
49
+ * * `plugjs-javascript-mjs`: marks `*.mjs` files as `module`.
50
+ */
51
+ export default [ javascript, javascriptCommonJs, javascriptModule ]
@@ -0,0 +1,51 @@
1
+ import tseslint from 'typescript-eslint'
2
+
3
+ /** Our own rules overriding `typescript-eslint/recommended`. */
4
+ export const typescript = {
5
+ name: 'plugjs-typescript',
6
+
7
+ files: [ '**/*.ts', '**/*.cts', '**/*.mts' ],
8
+
9
+ rules: {
10
+ 'no-unused-vars': 'off', // overrides ESLint Recommended for TypeScript
11
+ 'no-dupe-class-members': 'off', // overrides ESLint Recommended for TypeScript
12
+
13
+ '@typescript-eslint/consistent-type-imports': 'error',
14
+ '@typescript-eslint/explicit-function-return-type': [ 'error', {
15
+ allowExpressions: true,
16
+ allowDirectConstAssertionInArrowFunctions: true,
17
+ allowConciseArrowFunctionExpressionsStartingWithVoid: true,
18
+ } ],
19
+ '@typescript-eslint/no-dupe-class-members': 'error',
20
+ '@typescript-eslint/no-explicit-any': 'off',
21
+ '@typescript-eslint/no-floating-promises': 'error',
22
+ '@typescript-eslint/no-invalid-this': 'error',
23
+ '@typescript-eslint/no-unused-vars': [ 'error', {
24
+ args: 'after-used',
25
+ argsIgnorePattern: '^_',
26
+ } ],
27
+
28
+ },
29
+ }
30
+
31
+ /**
32
+ * TypeScript module: declares all the common rules for TypeScript code bases.
33
+ *
34
+ * This module includes these configurations:
35
+ *
36
+ * * `typescript-eslint/recommended`: imports all the configurations from
37
+ * TypeScript ESlint recommended, but restrict them to operate only on
38
+ * `.ts`, `.cts`, and `.mts` files. This *should* include:
39
+ * * `typescript-eslint/base`: basic parser configuration.
40
+ * * `typescript-eslint/eslint-recommended`: disable ESLint rules conflicting
41
+ * with TypeScript.
42
+ * * `typescript-eslint/recommended`: recommended config for TypeScript
43
+ * * `plugjs-typescript`: our rules overriding `typescript-eslint/recommended`.
44
+ */
45
+ export default [
46
+ ...tseslint.configs.recommended.map((config) => {
47
+ config.files = [ '**/*.ts', '**/*.cts', '**/*.mts' ]
48
+ return config
49
+ }),
50
+ typescript,
51
+ ]
@@ -0,0 +1,40 @@
1
+ import js from '@eslint/js'
2
+
3
+ import basic from './configs/basic.mjs'
4
+ import javascript from './configs/javascript.mjs'
5
+ import typescript from './configs/typescript.mjs'
6
+
7
+ export * from './configs/basic.mjs'
8
+ export * from './configs/javascript.mjs'
9
+
10
+ /**
11
+ * Base `ESLint` configuration for PlugJS.
12
+ *
13
+ * This includes a number of configurations:
14
+ *
15
+ * * `eslint-recommended`: recommended JavaScript config from ESLint.
16
+ *
17
+ * * `plugjs-base`: basic configuration of ESLint rules.
18
+ * * `plugjs-stylistic`: style shared between JavaScript and TypeScript.
19
+ * * `plugjs-unicorn`: extra niceties from the ESLint Unicorn plugin.
20
+ * * `plugjs-importx`: defines the style of our imports.
21
+ *
22
+ * * `plugjs-javascript`: basic extra rules for JavaScript sources.
23
+ * * `plugjs-javascript-cjs`: marks `*.cjs` files as `commonjs`.
24
+ * * `plugjs-javascript-mjs`: marks `*.mjs` files as `module`.
25
+ *
26
+ * * `typescript-eslint/recommended`: imports all the configurations from
27
+ * TypeScript ESlint recommended, but restrict them to operate only on
28
+ * `.ts`, `.cts`, and `.mts` files. This *should* include:
29
+ * * `typescript-eslint/base`: basic parser configuration.
30
+ * * `typescript-eslint/eslint-recommended`: disable ESLint rules conflicting
31
+ * with TypeScript.
32
+ * * `typescript-eslint/recommended`: recommended config for TypeScript
33
+ * * `plugjs-typescript`: our rules overriding `typescript-eslint/recommended`.
34
+ */
35
+ export default [
36
+ js.configs.recommended,
37
+ ...basic,
38
+ ...javascript,
39
+ ...typescript,
40
+ ]
package/package.json CHANGED
@@ -1,26 +1,46 @@
1
1
  {
2
2
  "name": "@plugjs/eslint-plugin",
3
- "version": "0.1.23",
3
+ "version": "0.2.0-beta.2",
4
4
  "description": "Shared ESLint configurations and extras",
5
- "main": "./index.cjs",
5
+ "main": "./eslint.config.mjs",
6
+ "type": "module",
6
7
  "author": "Team Juit <developers@juit.com>",
7
8
  "license": "Apache-2.0",
8
9
  "scripts": {
9
- "build": "eslint *.cjs configs/*.cjs"
10
+ "build": "eslint build.mjs eslint.config.mjs configs"
10
11
  },
11
12
  "peerDependencies": {
12
- "@typescript-eslint/eslint-plugin": ">=6",
13
- "@typescript-eslint/parser": ">=6"
14
- },
15
- "dependencies": {
16
- "eslint-config-google": "^0.14.0",
17
- "eslint-import-resolver-typescript": "^3.6.1",
18
- "eslint-plugin-import": "^2.29.1",
19
- "eslint-plugin-unicorn": "^54.0.0"
13
+ "eslint": "^9.5.0"
20
14
  },
21
15
  "files": [
22
16
  "*.md",
23
- "index.cjs",
17
+ "eslint.config.mjs",
18
+ "bundles/",
24
19
  "configs/"
25
- ]
26
- }
20
+ ],
21
+ "dependencies": {
22
+ "@eslint/js": "9.5.0",
23
+ "@typescript-eslint/utils": "8.0.0-alpha.30",
24
+ "debug": "4.3.5",
25
+ "doctrine": "2.1.0",
26
+ "enhanced-resolve": "5.17.0",
27
+ "eslint": "9.5.0",
28
+ "eslint-module-utils": "2.8.1",
29
+ "eslint-plugin-unicorn": "54.0.0",
30
+ "eslint-visitor-keys": "4.0.0",
31
+ "espree": "10.1.0",
32
+ "estraverse": "5.3.0",
33
+ "fast-glob": "3.3.2",
34
+ "get-tsconfig": "4.7.5",
35
+ "globals": "15.6.0",
36
+ "is-core-module": "2.14.0",
37
+ "is-glob": "4.0.3",
38
+ "minimatch": "9.0.4",
39
+ "picomatch": "4.0.2",
40
+ "resolve": "1.22.8",
41
+ "semver": "7.6.2",
42
+ "tslib": "2.6.3",
43
+ "typescript": "5.5.2",
44
+ "typescript-eslint": "8.0.0-alpha.30"
45
+ }
46
+ }
@@ -1,192 +0,0 @@
1
- 'use strict'
2
-
3
- module.exports = {
4
- env: {
5
- es2020: true,
6
- },
7
- parser: '@typescript-eslint/parser',
8
- parserOptions: {
9
- ecmaVersion: 2020,
10
- createDefaultProgram: false,
11
- project: [
12
- './tsconfig.json',
13
- './test/tsconfig.json',
14
- ],
15
- },
16
- plugins: [
17
- '@typescript-eslint',
18
- 'import',
19
- 'unicorn',
20
- ],
21
- // Settings for "eslint-plugin-import"
22
- settings: {
23
- 'import/extensions': [ '.ts', '.js', '.mjs', '.cjs' ],
24
- 'import/external-module-folders': [ 'node_modules', 'node_modules/@types' ],
25
- 'import/parsers': {
26
- '@typescript-eslint/parser': [ '.ts' ],
27
- 'espree': [ '.js', '.mjs', '.cjs' ],
28
- },
29
- 'import/resolver': {
30
- 'typescript': true,
31
- 'node': true,
32
- },
33
- },
34
- extends: [
35
- 'google',
36
- 'eslint:recommended',
37
- 'plugin:@typescript-eslint/eslint-recommended',
38
- ],
39
- rules: {
40
- // No logging / no debugging
41
- 'no-console': [ 'warn' ],
42
- 'no-debugger': [ 'warn' ],
43
-
44
- // Indenting, but for TypeScript
45
- 'indent': [ 'off' ],
46
- '@typescript-eslint/indent': [ 'error', 2, {
47
- 'CallExpression': {
48
- 'arguments': 2,
49
- },
50
- 'FunctionDeclaration': {
51
- 'body': 1,
52
- 'parameters': 2,
53
- },
54
- 'FunctionExpression': {
55
- 'body': 1,
56
- 'parameters': 2,
57
- },
58
- 'MemberExpression': 2,
59
- 'ObjectExpression': 1,
60
- 'SwitchCase': 1,
61
- 'ignoredNodes': [
62
- 'ConditionalExpression',
63
- ],
64
- } ],
65
-
66
- // Spaces before function parenthesis, for TypeScript
67
- 'space-before-function-paren': [ 'off' ],
68
- '@typescript-eslint/space-before-function-paren': [ 'error', {
69
- asyncArrow: 'always',
70
- anonymous: 'never',
71
- named: 'never',
72
- } ],
73
-
74
- // Always have spaces around arrays and objects
75
- 'array-bracket-spacing': [ 'error', 'always' ],
76
- 'object-curly-spacing': [ 'error', 'always' ],
77
-
78
- // Always have newline character at the end of the file
79
- 'eol-last': [ 'error', 'always' ],
80
-
81
- // No constraints for the max line length
82
- 'max-len': [ 'off' ],
83
-
84
- // No more than 2 blank lines
85
- 'no-multiple-empty-lines': [ 'error', { 'max': 2, 'maxBOF': 0, 'maxEOF': 1 } ],
86
-
87
- // Srings: either '...' or `... ${...} ...`, and no 'ab' + 'cd'
88
- 'no-template-curly-in-string': [ 'error' ],
89
- 'quotes': [ 'error', 'single', { 'allowTemplateLiterals': false } ],
90
- 'no-useless-concat': [ 'error' ],
91
-
92
- // One variable per declaration, no "const x, y, ..."
93
- 'one-var': [ 'error', 'never' ],
94
-
95
- // No semicolons
96
- 'semi': [ 'error', 'never' ],
97
-
98
- // Allow TypeScript triple-slash comments
99
- 'spaced-comment': [ 'error', 'always', { 'markers': [ '/ <reference' ] } ],
100
-
101
- // Remember our TODOs and FIXMEs
102
- 'no-warning-comments': [ 'warn' ],
103
-
104
- // No "proper" JSDoc
105
- 'require-jsdoc': [ 'off' ], // nope!
106
- 'valid-jsdoc': [ 'off' ], // nope as well!
107
-
108
- // TypeScript sanity
109
- '@typescript-eslint/consistent-type-imports': [ 'error' ],
110
- '@typescript-eslint/no-unused-vars': [ 'error' ],
111
- '@typescript-eslint/no-dupe-class-members': [ 'error' ],
112
- '@typescript-eslint/no-invalid-this': [ 'error' ],
113
- '@typescript-eslint/no-floating-promises': [ 'error' ],
114
- '@typescript-eslint/explicit-function-return-type': [ 'error', {
115
- 'allowExpressions': true,
116
- 'allowDirectConstAssertionInArrowFunctions': true,
117
- 'allowConciseArrowFunctionExpressionsStartingWithVoid': true,
118
- } ],
119
-
120
- // Import specifics
121
- 'import/no-cycle': [ 'error' ],
122
- 'import/no-duplicates': [ 'error' ],
123
- 'import/no-extraneous-dependencies': [ 'off' ],
124
- 'import/consistent-type-specifier-style': [ 'error', 'prefer-top-level' ],
125
- 'import/order': [ 'error', {
126
- 'groups': [ 'builtin', 'external', 'internal', [ 'parent', 'sibling' ], 'index', 'object', 'type' ],
127
- 'newlines-between': 'always',
128
- 'warnOnUnassignedImports': true,
129
- } ],
130
-
131
- // Unicorn extras
132
- 'unicorn/empty-brace-spaces': [ 'error' ],
133
- 'unicorn/no-instanceof-array': [ 'error' ],
134
- 'unicorn/prefer-node-protocol': [ 'error' ],
135
-
136
- // Turn off specific JavaScript rules
137
- 'guard-for-in': [ 'off' ], // no errors on for ... in
138
- 'no-undef': [ 'off' ], // it'll mark global types as undefs
139
- 'no-redeclare': [ 'off' ], // use @typescript/no-redeclare
140
- 'no-unused-vars': [ 'off' ], // use @typescript/no-unused-vars
141
- 'no-dupe-class-members': [ 'off' ], // use @typescript/no-dupe-class-members
142
- 'no-invalid-this': [ 'off' ], // use @typescript/no-invalid-this
143
- },
144
- overrides: [ {
145
- files: [ '*.js', '*.cjs', '*.mjs' ],
146
- parser: 'espree',
147
- env: {
148
- node: true,
149
- },
150
- rules: {
151
- 'strict': [ 'error', 'global' ],
152
-
153
- // JavaScript sanity
154
- 'no-undef': [ 'error' ],
155
- 'no-redeclare': [ 'error' ],
156
- 'no-unused-vars': [ 'error' ],
157
- 'no-dupe-class-members': [ 'error' ],
158
- 'no-invalid-this': [ 'error' ],
159
-
160
- // Turn off specific TypeScript rules
161
- '@typescript-eslint/consistent-type-imports': [ 'off' ],
162
- '@typescript-eslint/explicit-function-return-type': [ 'off' ],
163
- '@typescript-eslint/indent': [ 'off' ],
164
- '@typescript-eslint/no-dupe-class-members': [ 'off' ],
165
- '@typescript-eslint/no-floating-promises': [ 'off' ],
166
- '@typescript-eslint/no-invalid-this': [ 'off' ],
167
- '@typescript-eslint/no-unused-vars': [ 'off' ],
168
- '@typescript-eslint/space-before-function-paren': [ 'off' ],
169
- },
170
- }, {
171
- files: [ 'src/**' ],
172
- rules: {
173
- // Turn _ON_ dependencies checks only for sources
174
- 'import/no-extraneous-dependencies': [ 'error', {
175
- 'devDependencies': true,
176
- 'peerDependencies': true,
177
- 'optionalDependencies': true,
178
- 'bundledDependencies': false,
179
- } ],
180
- },
181
- }, {
182
- files: [ '*.cjs' ],
183
- parserOptions: {
184
- 'sourceType': 'script',
185
- },
186
- }, {
187
- files: [ '*.mjs' ],
188
- parserOptions: {
189
- 'sourceType': 'module',
190
- },
191
- } ],
192
- }
package/index.cjs DELETED
@@ -1,5 +0,0 @@
1
- 'use strict'
2
-
3
- const typescript = require('./configs/typescript.cjs')
4
-
5
- module.exports.configs = { typescript }