Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-na-bot authored Mar 22, 2024
2 parents 6564860 + c77c1a6 commit aa17e43
Show file tree
Hide file tree
Showing 201 changed files with 4,996 additions and 3,336 deletions.
168 changes: 142 additions & 26 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,67 @@
"env": {
"node": true,
"es6": true,
"es2017": true,
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
},
"rules": {
"array-bracket-spacing": [2, "never"],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "always"],
"arrow-spacing": [2, { "before": true, "after": true }],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline",
}],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"curly": [2, "multi-line"],
"computed-property-spacing": [2, "never"],
"curly": [2, "all"],
"default-case": [2, { "commentPattern": "(?:)" }],
"default-case-last": [2],
"default-param-last": [2],
"dot-location": [2, "property"],
"dot-notation": [2, { "allowKeywords": true, "allowPattern": "throws" }],
"eol-last": [2, "always"],
"eqeqeq": [2, "allow-null"],
"func-call-spacing": 2,
"indent": [2, 2],
"for-direction": [2],
"function-call-argument-newline": [2, "consistent"],
"func-call-spacing": [2, "never"],
"implicit-arrow-linebreak": [2, "beside"],
"indent": [2, 2, {
"SwitchCase": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"FunctionDeclaration": {
"parameters": 1,
"body": 1
},
"FunctionExpression": {
"parameters": 1,
"body": 1
},
"CallExpression": {
"arguments": 1
},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1,
"flatTernaryExpressions": false,
}],
"jsx-quotes": [2, "prefer-double"],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true,
"mode": "strict",
}],
"keyword-spacing": ["error", {
"before": true,
"after": true,
Expand All @@ -40,27 +82,69 @@
"case": { "after": true }
}
}],
"linebreak-style": [2, "unix"],
"lines-around-directive": [2, {
"before": "always",
"after": "always",
}],
"max-len": 0,
"new-parens": 2,
"no-array-constructor": 2,
"no-compare-neg-zero": 2,
"no-cond-assign": [2, "always"],
"no-extra-parens": 2,
"no-multiple-empty-lines": [2, { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
"no-return-assign": [2, "always"],
"no-trailing-spaces": 2,
"no-use-before-define": [2, { "functions": true, "classes": true, "variables": true }],
"no-var": 2,
"object-curly-spacing": [2, "always"],
"object-shorthand": ["error", "always", {
"ignoreConstructors": false,
"avoidQuotes": true,
"avoidQuotes": false,
"avoidExplicitReturnArrows": true,
}],
"one-var": [2, "never"],
"operator-linebreak": [2, "none", {
"overrides": {
"?": "before",
":": "before",
"&&": "before",
"||": "before",
},
}],
"prefer-const": 2,
"prefer-object-spread": 2,
"prefer-rest-params": 2,
"prefer-template": 2,
"quote-props": [2, "as-needed", { "keywords": false }],
"quotes": [2, "single", {
"allowTemplateLiterals": true,
"avoidEscape": true,
}],
"rest-spread-spacing": [2, "never"],
"semi": [2, "always"],
"semi-spacing": [2, { "before": false, "after": true }],
"semi-style": [2, "last"],
"space-before-blocks": [2, { "functions": "always", "keywords": "always", "classes": "always" }],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always",
}],
"space-in-parens": [2, "never"],
"space-infix-ops": [2],
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"switch-colon-spacing": [2, { "after": true, "before": false }],
"template-curly-spacing": [2, "never"],
"template-tag-spacing": [2, "never"],
"unicode-bom": [2, "never"],
"use-isnan": [2, { "enforceForSwitchCase": true }],
"valid-typeof": [2],
"wrap-iife": [2, "outside", { "functionPrototypeMethods": true }],
"wrap-regex": [2],
"yield-star-spacing": [2, { "before": false, "after": true }],
"yoda": [2, "never", { "exceptRange": true, "onlyEquality": false }],

"eslint-plugin/consistent-output": [
"error",
Expand All @@ -76,7 +160,16 @@
"eslint-plugin/require-meta-type": "error",

// dog fooding
"import/no-extraneous-dependencies": "error",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"tests/**",
"resolvers/*/test/**",
"scripts/**"
],
"optionalDependencies": false,
"peerDependencies": true,
"bundledDependencies": false,
}],
"import/unambiguous": "off",
},

Expand All @@ -98,19 +191,58 @@
},
},
{
"files": "resolvers/**",
"files": [
"resolvers/**",
"utils/**",
],
"env": {
"es6": false,
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2016,
},
"rules": {
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"prefer-destructuring": "off",
"prefer-object-spread": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"prefer-template": "off",
}
},
{
"files": "resolvers/webpack/**",
"files": [
"resolvers/webpack/**",
"utils/**",
],
"rules": {
"import/no-extraneous-dependencies": 1,
"no-console": 1,
},
"env": {
"es6": true,
},
{
"files": [
"utils/**", // TODO
"src/ExportMap.js", // TODO
],
"rules": {
"no-use-before-define": "off",
},
},
{
"files": [
"resolvers/webpack/index.js",
"resolvers/webpack/test/example.js",
"utils/parse.js",
],
"rules": {
"no-console": "off",
},
},
{
Expand All @@ -122,22 +254,6 @@
"es6": false
},
},
{
"files": "utils/**",
"parserOptions": {
"ecmaVersion": 6,
},
"rules": {
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-console": 1,
},
},
{
"files": "tests/**",
"env": {
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,9 @@ resolvers/node/LICENSE
resolvers/webpack/LICENSE
utils/LICENSE
memo-parser/.npmrc
memo-parser/.nycrc
resolvers/node/.npmrc
resolvers/node/.nycrc
resolvers/webpack/.npmrc
resolvers/webpack/.nycrc
utils/.npmrc
utils/.nycrc

# Dependency directory
# Commenting this out is preferred by some people, see
Expand Down
10 changes: 10 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"line-length": false,
"ul-indent": {
"start_indent": 1,
"start_indented": true
},
"ul-style": {
"style": "dash"
}
}
2 changes: 2 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CHANGELOG.md
node_modules
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ matrix:
fast_finish: true

before_install:
- 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash && . $NVM_DIR/nvm.sh'
- 'nvm install-latest-npm'
- 'NPM_CONFIG_LEGACY_PEER_DEPS=true npm install'
- 'npm run copy-metafiles'
Expand Down
Loading

0 comments on commit aa17e43

Please sign in to comment.