summaryrefslogtreecommitdiff
path: root/src/node_modules/es-abstract/.eslintrc
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-21 16:52:28 +0100
committerMinteck <contact@minteck.org>2021-12-21 16:52:28 +0100
commit46e43f4bde4a35785b4997b81e86cd19f046b69b (patch)
treec53c2f826f777f9d6b2d249dab556feb72a6c3a6 /src/node_modules/es-abstract/.eslintrc
downloadlangdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.gz
langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.bz2
langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.zip
Commit
Diffstat (limited to 'src/node_modules/es-abstract/.eslintrc')
-rw-r--r--src/node_modules/es-abstract/.eslintrc72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/node_modules/es-abstract/.eslintrc b/src/node_modules/es-abstract/.eslintrc
new file mode 100644
index 0000000..666eeae
--- /dev/null
+++ b/src/node_modules/es-abstract/.eslintrc
@@ -0,0 +1,72 @@
+{
+ "root": true,
+
+ "extends": "@ljharb",
+
+ "env": {
+ "es6": true,
+ },
+
+ "rules": {
+ "array-bracket-newline": 0,
+ "array-element-newline": 0,
+ "complexity": 0,
+ "eqeqeq": [2, "allow-null"],
+ "func-name-matching": 0,
+ "id-length": [2, { "min": 1, "max": 40 }],
+ "max-params": [2, 4],
+ "max-statements-per-line": [2, { "max": 2 }],
+ "multiline-comment-style": 0,
+ "no-magic-numbers": 0,
+ "new-cap": 0,
+ "no-extra-parens": 1,
+ "operator-linebreak": [2, "before"],
+ "sort-keys": 0,
+ },
+
+ "overrides": [
+ {
+ "files": "GetIntrinsic.js",
+ "rules": {
+ "max-statements": 0,
+ }
+ },
+ {
+ "files": "operations/*",
+ "rules": {
+ "max-lines": 0,
+ },
+ },
+ {
+ "files": "operations/*.js",
+ "parserOptions": {
+ "ecmaVersion": 2020,
+ },
+ "rules": {
+ "no-console": 0,
+ "no-multi-str": 0,
+ },
+ },
+ {
+ "files": "operations/getOps.js",
+ "rules": {
+ "no-console": 0,
+ "no-process-exit": 0,
+ },
+ },
+ {
+ "files": "test/**",
+ "rules": {
+ "id-length": 0,
+ "max-lines": 0,
+ "max-lines-per-function": 0,
+ "max-statements-per-line": [2, { "max": 3 }],
+ "max-statements": 0,
+ "no-implicit-coercion": 0,
+ "no-invalid-this": 1,
+ "object-curly-newline": 0,
+ "prefer-regex-literals": 0,
+ },
+ },
+ ],
+}