summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-09 18:26:01 +0200
committerJulien Dessaux2022-10-09 18:26:01 +0200
commit2569c6332fb1f9b695b984f2a8f34eaee3f81d89 (patch)
tree8a0e0b6413de0d0a4441adddbf03c7ba661481ef /.eslintrc.js
parentTweaked display (diff)
downloadjeux-de-mots-2569c6332fb1f9b695b984f2a8f34eaee3f81d89.tar.gz
jeux-de-mots-2569c6332fb1f9b695b984f2a8f34eaee3f81d89.tar.bz2
jeux-de-mots-2569c6332fb1f9b695b984f2a8f34eaee3f81d89.zip
Added eslint validation
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..d1074ab
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,36 @@
+module.exports = {
+ "env": {
+ "browser": true,
+ "es2021": true
+ },
+ "extends": "eslint:recommended",
+ "overrides": [
+ {
+ "files": ["**/*.js"],
+ "globals": {
+ "CWDATA": "writable",
+ },
+ },
+ ],
+ "parserOptions": {
+ "ecmaVersion": "latest"
+ },
+ "rules": {
+ "indent": [
+ "error",
+ "tab"
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "quotes": [
+ "error",
+ "double"
+ ],
+ "semi": [
+ "error",
+ "always"
+ ]
+ }
+};