Skip to content

Commit bfacdb0

Browse files
authored
feat: [Import Assistant] Page transformations (#4)
- add page assistant command - fix copying of templates - use latest import builder - add eslint - fix linting errors
1 parent 45de445 commit bfacdb0

19 files changed

+1789
-370
lines changed

eslint.config.js

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import globals from "globals";
2+
import pluginJs from '@eslint/js';
3+
import stylistic from '@stylistic/eslint-plugin'
4+
5+
export default [
6+
{
7+
files: ['src/**/*.js', 'test/**/*.js'],
8+
languageOptions: {
9+
ecmaVersion: 'latest',
10+
sourceType: 'module',
11+
globals: {
12+
...globals.node,
13+
document: 'readonly',
14+
MutationObserver: 'readonly',
15+
},
16+
},
17+
plugins: {
18+
pluginJs,
19+
'@stylistic': stylistic,
20+
},
21+
rules: {
22+
...pluginJs.configs.recommended.rules,
23+
'@stylistic/indent': ['error', 2],
24+
'@stylistic/quotes': ['error', 'single'],
25+
'@stylistic/comma-dangle': ['error', 'always-multiline'],
26+
'@stylistic/object-curly-spacing': ['error', 'always'],
27+
'no-unused-vars': ['error', { caughtErrors: 'none' }],
28+
},
29+
},
30+
{
31+
files: ['test/**/*.js'],
32+
languageOptions: {
33+
ecmaVersion: 'latest',
34+
sourceType: 'module',
35+
globals: {
36+
describe: 'readonly',
37+
it: 'readonly',
38+
before: 'readonly',
39+
after: 'readonly',
40+
beforeEach: 'readonly',
41+
afterEach: 'readonly',
42+
},
43+
},
44+
},
45+
];

0 commit comments

Comments
 (0)