summaryrefslogtreecommitdiff
path: root/node_modules/iso-639-1/.eslintrc
diff options
context:
space:
mode:
authorShipwreckt <me@shipwreckt.co.uk>2025-10-31 20:02:14 +0000
committerShipwreckt <me@shipwreckt.co.uk>2025-10-31 20:02:14 +0000
commit7a52ddeba2a68388b544f529d2d92104420f77b0 (patch)
tree15ddd47457a2cb4a96060747437d36474e4f6b4e /node_modules/iso-639-1/.eslintrc
parent53d6ae2b5568437afa5e4995580a3fb679b7b91b (diff)
Changed from static to 11ty!
Diffstat (limited to 'node_modules/iso-639-1/.eslintrc')
-rw-r--r--node_modules/iso-639-1/.eslintrc38
1 files changed, 38 insertions, 0 deletions
diff --git a/node_modules/iso-639-1/.eslintrc b/node_modules/iso-639-1/.eslintrc
new file mode 100644
index 0000000..1ae9ef8
--- /dev/null
+++ b/node_modules/iso-639-1/.eslintrc
@@ -0,0 +1,38 @@
+{
+ // 基于 airbnb 规则
+ "extends": "airbnb",
+ // 使用 babel 解析器,支持一些还没有进入 ES6+ 标准的特性。比如 class property
+ "parser": "babel-eslint",
+ // 解析 webpack alias 中的模块名
+ "settings": {
+ "import/resolver": "webpack"
+ },
+ "env": {
+ "browser": true
+ },
+ "rules": {
+ "no-plusplus": [
+ "error",
+ {
+ // 允许 for 循环中的 i++
+ "allowForLoopAfterthoughts": true
+ }
+ ],
+ "no-param-reassign": [
+ "error",
+ {
+ // 允许修改参数的属性
+ "props": false
+ }
+ ],
+ // 允许在循环里使用 await
+ "no-await-in-loop": 0,
+ // 允许在一个表达式里使用多种操作符,否则与 prettier 冲突
+ // see https://github.com/prettier/eslint-config-prettier#no-mixed-operators
+ "no-mixed-operators": 0,
+ // 允许在 jsx 中使用 bind
+ "react/jsx-no-bind": 0,
+ // 允许所有类型的 proptype
+ "react/forbid-prop-types": 0
+ }
+} \ No newline at end of file