Skip to content

Commit

Permalink
Split code per packages (ovidiuch#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch authored Dec 16, 2018
1 parent bd20ae3 commit 1761a47
Show file tree
Hide file tree
Showing 241 changed files with 6,552 additions and 5,237 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
flow-typed
web/.next
web/cosmos-export
59 changes: 0 additions & 59 deletions .eslintrc

This file was deleted.

64 changes: 64 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module.exports = {
parser: 'babel-eslint',
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:flowtype/recommended'
],
plugins: ['react', 'flowtype'],
env: {
es6: true,
'shared-node-browser': true
},
settings: {
'import/resolver': {
'babel-module': {}
}
},
globals: {
global: true,
process: true
},
rules: {
'no-console': 'off',
'flowtype/generic-spacing': 'off'
},
overrides: [
{
files: [
'.eslintrc.js',
'babel.config.js',
'jest.config.js',
'jest.framework-setup.js',
'web/next.config.js',
'web/cosmos.config.js',
'web/cosmos.test.js',
'server/**/*.js'
],
env: {
node: true
}
},
{
files: ['**/*.test.js'],
env: {
jest: true
}
},
{
files: [
'web/components/**/*.js',
'web/pages/**/*.js',
'cosmos.proxies.js'
],
rules: {
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error'
}
},
{
files: ['**/__fixtures__/**/*.js']
}
]
};
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ flow-typed
[lints]

[options]
module.name_mapper='^shared' ->'<PROJECT_ROOT>/shared'

[strict]
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package.json
flow-typed
Loading

0 comments on commit 1761a47

Please sign in to comment.