Skip to content

Commit 8d5b250

Browse files
committed
build: Config ESLint file.
1 parent 4947415 commit 8d5b250

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.eslintrc.cjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
extends: [
3+
'eslint:recommended',
4+
'plugin:@typescript-eslint/eslint-recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:vue/vue3-recommended',
7+
'plugin:prettier/recommended',
8+
'plugin:cypress/recommended',
9+
],
10+
globals: {
11+
browser: true,
12+
tofinoJS: true,
13+
},
14+
parserOptions: {
15+
parser: '@typescript-eslint/parser',
16+
},
17+
plugins: ['@typescript-eslint'],
18+
env: {
19+
'vue/setup-compiler-macros': true,
20+
node: true,
21+
es2021: true,
22+
es6: true,
23+
},
24+
};

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
!.env
77
!.gitkeep
88
!.gitattributes
9-
!.eslintrc.js
109
!.stylelintrc.js
1110
!.env
1211
!.prettierrc.js
1312
!.git-ftp-ignore
1413
!.github
1514
!.npmrc
1615
!.prettierignore
16+
!.eslintrc.cjs
1717

1818
# ignore node/grunt dependency directories
1919
node_modules/

0 commit comments

Comments
 (0)