Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"comments": false,
"env": {
"development": {
"presets": [
Expand All @@ -21,8 +22,7 @@
"presets": [
"lux"
],
"minified": true,
"comments": false
"minified": true
}
}
}
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ decl/
examples/
flow-typed/
test/test-app/
*interfaces.js
105 changes: 36 additions & 69 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,85 +4,52 @@
"jest",
"flowtype"
],
"extends": "airbnb-base",
"extends": [
"airbnb-base",
"plugin:flowtype/recommended",
"prettier",
"prettier/flowtype"
],
"env": {
"jest/globals": true,
"node": true
},
"globals": {
"$PropertyType": true,
"afterAll": true,
"afterEach": true,
"beforeAll": true,
"beforeEach": true,
"Class": true,
"describe": true,
"expect": true,
"Generator": true,
"it": true,
"jasmine": true,
"jest": true,
"Knex$QueryBuilder": true,
"Knex$SchemaBuilder": true,
"Knex$Transaction": true,
"Process": true,
"test": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"semi": ["error", "never"],
"strict": 0,
"max-len": ["error", 80],
"arrow-parens": 0,
"comma-dangle": [2, "only-multiline"],
"global-require": 0,
"no-underscore-dangle": 0,
"class-methods-use-this": 0,
"no-irregular-whitespace": 0,
"no-restricted-syntax": [
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"max-len": [
"error",
80
],
"no-use-before-define": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "_",
"varsIgnorePattern": "_"
}
],
"semi": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
"never"
],
"import/order": ["warn", {
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "always"
}],
"import/extensions": 0,
"import/no-named-default": 0,
"import/no-dynamic-require": 0,
"import/prefer-default-export": 0,
"jest/no-focused-tests": "error",
"jest/no-disabled-tests": "warn",
"jest/no-identical-title": "error",
"flowtype/semi": ["error", "never"],
"flowtype/no-dupe-keys": 2,
"flowtype/boolean-style": [2, "boolean"],
"flowtype/generic-spacing": 2,
"flowtype/define-flow-type": 0,
"flowtype/space-after-type-colon": [2, "always"],
"flowtype/space-before-type-colon": [2, "never"],
"flowtype/union-intersection-spacing": [2, "always"],
"flowtype/space-before-generic-bracket": [2, "never"],
"flowtype/require-valid-file-annotation": [2, "always"]
"import/extensions": "off",
"import/first": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off"
}
}
32 changes: 18 additions & 14 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
[ignore]
.*/bin/*
.*/dist/*
.*/examples/*
.*/guide/*
.*/lib/*
.*/node_modules/*
.*/scripts/*
.*/test/test-app/*
.*/__snapshots__/*
<PROJECT_ROOT>/__snapshots__/*
<PROJECT_ROOT>/bin/*
<PROJECT_ROOT>/dist/*
<PROJECT_ROOT>/examples/*
<PROJECT_ROOT>/guide/*
<PROJECT_ROOT>/lib/*
<PROJECT_ROOT>/node_modules/*
<PROJECT_ROOT>/scripts/*
<PROJECT_ROOT>/src/packages/cli/*
<PROJECT_ROOT>/test/test-app/*

[include]

[libs]
flow-typed/
decl/

[options]
emoji=true
suppress_comment=\\(.\\|\n\\)*\\$FlowIgnore

module.name_mapper='LUX_LOCAL' -> '<PROJECT_ROOT>'
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable

experimental.const_params=true

module.name_mapper='^@lux\(.*\)' -> '<PROJECT_ROOT>/src\1'
module.name_mapper='rollup-plugin-lux' -> '<PROJECT_ROOT>/node_modules/rollup-plugin-lux/src/index.js'

unsafe.enable_getters_and_setters=true

esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ node_modules/
# misc
*.sqlite
*.DS_Store
.idea/
.vscode/

# logs
log/
Expand Down
Loading