Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all development npm dependencies (2020-06-22) #928

Merged
merged 5 commits into from
Jul 12, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix linting config
  • Loading branch information
Your Name committed Jul 3, 2020
commit f252e221539241df21fb661b380f5d73006e2b24
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
index.d.ts
scripts/
117 changes: 57 additions & 60 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
module.exports = {
parser: "babel-eslint",
plugins: ["react", "react-native", "prettier", "fp", "flowtype", "import"],
parser: 'babel-eslint',
plugins: ['react', 'react-native', 'prettier', 'fp', 'flowtype', 'import'],
env: {
jest: true
jest: true,
},
settings: {
react: {
version: require("./package.json").dependencies.react
version: require('./package.json').dependencies.react,
pragma: 'React',
flowVersion: '0.87',
},
"import/resolver": {
'import/resolver': {
node: {
extensions: [".js", ".jsx"]
}
},
"import/ignore": ["react-native"],
react: {
pragma: "React",
version: "16.11.0",
flowVersion: "0.87"
extensions: ['.js', '.jsx'],
},
},
'import/ignore': ['react-native'],
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true
}
}
modules: true,
},
},
},
globals: {
fetch: true,
Expand All @@ -36,58 +33,58 @@ module.exports = {
window: true,
document: true,
navigator: true,
XMLSerializer: true
XMLSerializer: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"plugin:flowtype/recommended",
"@react-native-community",
'eslint:recommended',
'plugin:react/recommended',
'prettier',
'plugin:flowtype/recommended',
'@react-native-community',
],
rules: {
"react/no-deprecated": "warn",
"react/no-string-refs": "warn",
"import/named": [2],
"import/no-named-default": [0],
"import/order": [
"error",
'react/no-deprecated': 'warn',
'react/no-string-refs': 'warn',
'import/named': [2],
'import/no-named-default': [0],
'import/order': [
'error',
{
groups: ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "always"
}
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
},
],
"import/exports-last": [0],
"import/no-useless-path-segments": [2],
'import/exports-last': [0],
'import/no-useless-path-segments': [2],
camelcase: [0],
"no-console": [0],
"import/prefer-default-export": "off",
"jsx-a11y/href-no-hash": "off",
"react/prop-types": [2],
quotes: [2, "single"],
"eol-last": [0],
"no-continue": [1],
"class-methods-use-this": [0],
"no-bitwise": [1],
"prefer-destructuring": [1],
"consistent-return": [1],
"no-warning-comments": [1],
"no-mixed-requires": [0],
"no-return-assign": 0,
"no-underscore-dangle": [0],
"no-await-in-loop": 0,
"no-restricted-syntax": 0,
"no-use-before-define": ["error", { functions: false }],
"no-unused-expressions": ["error", { allowTaggedTemplates: true }],
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
"prettier/prettier": [
"error",
'no-console': [0],
'import/prefer-default-export': 'off',
'jsx-a11y/href-no-hash': 'off',
'react/prop-types': [2],
quotes: [2, 'single'],
'eol-last': [0],
'no-continue': [1],
'class-methods-use-this': [0],
'no-bitwise': [1],
'prefer-destructuring': [1],
'consistent-return': [1],
'no-warning-comments': [1],
'no-mixed-requires': [0],
'no-return-assign': 0,
'no-underscore-dangle': [0],
'no-await-in-loop': 0,
'no-restricted-syntax': 0,
'no-use-before-define': ['error', {functions: false}],
'no-unused-expressions': ['error', {allowTaggedTemplates: true}],
'no-plusplus': ['error', {allowForLoopAfterthoughts: true}],
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: "all",
bracketSpacing: false
}
trailingComma: 'all',
bracketSpacing: false,
},
],
"fp/no-mutating-methods": "warn",
}
'fp/no-mutating-methods': 'warn',
},
};
4 changes: 2 additions & 2 deletions example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const blacklist = require('metro-config/src/defaults/blacklist');
const glob = require('glob-to-regexp');

const extraNodeModules = {
'@react-native-mapbox-gl/maps': path.resolve(__dirname+'/../maps')
}
'@react-native-mapbox-gl/maps': path.resolve(__dirname + '/../maps'),
};

function getBlacklist() {
const nodeModuleDirs = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"unittest": "jest",
"unittest:single": "jest --testNamePattern",
"format": "npm run lint -- --fix",
"lint": "eslint . --ignore-pattern 'example' --ignore-pattern 'scripts' --fix && cd example/ && eslint . --ignore-pattern 'scripts' --fix"
"lint": "eslint . --ignore-pattern 'example' --fix && cd example/ && eslint . --ignore-pattern 'scripts' --fix"
},
"peerDependencies": {
"prop-types": ">=15.5.8",
Expand Down