summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js17
-rw-r--r--.exrc2
2 files changed, 19 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..b591bdc
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,17 @@
+module.exports = {
+ env: {
+ browser: true,
+ commonjs: true,
+ es2021: true,
+ },
+ extends: "eslint:recommended",
+ parserOptions: {
+ ecmaVersion: "latest",
+ },
+ rules: {
+ "no-constant-binary-expression": "error",
+ indent: [ "warn", "tab", { SwitchCase: 1 } ],
+ semi: [ "error", "never" ],
+ "no-unused-vars": [ "error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" } ],
+ },
+}
diff --git a/.exrc b/.exrc
new file mode 100644
index 0000000..0b045fe
--- /dev/null
+++ b/.exrc
@@ -0,0 +1,2 @@
+set foldmethod=expr
+set foldexpr=getline(v:lnum)=~'^/\\*\ .*\\*/$'?'>1':'='