Skip to content

Commit b9605d6

Browse files
author
Maurice Snip
committed
chore: add ESLint
1 parent 9798cbf commit b9605d6

File tree

3 files changed

+3818
-1
lines changed

3 files changed

+3818
-1
lines changed

.eslintrc.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
extends: [
3+
'eslint:recommended',
4+
// 'prettier',
5+
],
6+
parser: '@babel/eslint-parser',
7+
env: {
8+
browser: true,
9+
es6: true,
10+
},
11+
parserOptions: {
12+
requireConfigFile: false,
13+
},
14+
};

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@
1010
],
1111
"repository": "https://github.com/mauricesnip/sulu-headless-api-client",
1212
"author": "Maurice Snip",
13-
"license": "MIT"
13+
"license": "MIT",
14+
"devDependencies": {
15+
"@babel/core": "^7.21.4",
16+
"@babel/eslint-parser": "^7.21.3",
17+
"eslint": "^8.38.0"
18+
}
1419
}

0 commit comments

Comments
 (0)