summaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorSonny Piers <sonny@fastmail.net>2021-01-21 14:12:43 +0100
committerSonny Piers <sonny@fastmail.net>2021-01-21 17:51:08 +0100
commit8da86e65f51bbe607be1bc947a69a1fe7ec9e4a1 (patch)
tree387498780c3286a403286f403c12c8b084bbad42 /.eslintrc
parent7dc3d1073fafa7f00661419655f4b10154b70467 (diff)
downloadepiphany-8da86e65f51bbe607be1bc947a69a1fe7ec9e4a1.tar.gz
Add eslint file for JavaScript code
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 000000000..1400c0323
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,18 @@
+{
+ "extends": [
+ "eslint:recommended"
+ ],
+ "rules": {
+ "semi": ["error"],
+ "no-unused-vars": ["error", { "args": "none" }],
+ "quotes": ["error", "single"],
+ "strict": ["error", "global"],
+ "eqeqeq": ["error"],
+ "no-var": ["error"]
+ },
+ "env": {
+ "browser": true,
+ "es2021": true
+ },
+ "ignorePatterns": ["/third-party"]
+} \ No newline at end of file