Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
node_modules
dist
fixtures
39 changes: 26 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
{
"extends": ["plugin:flowtype/recommended", "airbnb-base"],
"parser": "babel-eslint",
"extends": ["airbnb", "plugin:flowtype/recommended"],
"plugins": [
"flowtype",
"jest"
"flowtype-errors"
],
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"rules": {
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"arrow-body-style": [0, "as-needed"],
"camelcase": [0],
"no-trailing-spaces": [0],
"import/no-unresolved": [0],
"radix": [0],
"no-underscore-dangle": [0],
"no-param-reassign": [0],
"no-return-assign": [0, "except-parens"],
"array-bracket-spacing": [0],
"class-methods-use-this": [0],
"import/no-dynamic-require": [0],
"global-require": [0],
"function-paren-newline": [0],
"object-curly-newline": [0],
"prefer-arrow-callback": [0],
"prefer-destructuring": [0],
"import/no-extraneous-dependencies": [0],
"comma-dangle": [0, "never"],
"no-use-before-define": [0],
"flowtype-errors/show-errors": [2, 70],
"no-restricted-syntax": [2, "ForInStatement", "LabeledStatement", "WithStatement"],
"max-len": [2, 120, 2, {
"ignoreUrls": true,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-underscore-dangle": [0]
"max-lines": [2, 1000],
"func-names": [0]
},
"env": {
"jest/globals": true
"node": true
}
}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 120,
"parser": "flow",
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true
}
Loading