This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: { | |
'postcss-import': {}, | |
'postcss-cssnext': {}, | |
'postcss-preset-env': {}, | |
'cssnano': {} | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
... | |
... | |
"husky": { | |
"hooks": { | |
"pre-commit": "lint-staged" | |
} | |
}, | |
"lint-staged": { | |
"*.json": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://editorconfig.org | |
# A special property that should be specified at the top of the file outside of | |
# any sections. Set to true to stop .editor config file search on current file | |
root = true | |
[*] | |
# Indentation style | |
# Possible values - tab, space | |
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "stylelint-config-standard", | |
"plugins": [ | |
"stylelint-no-unsupported-browser-features", | |
"stylelint-order" | |
], | |
"ignoreFiles": ["**/*.js","**/*.jsx","**/*.ts","**/*.tsx","**/*.html"], | |
"rules": { | |
"declaration-block-no-redundant-longhand-properties": [ | |
true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"defaultSeverity": "error", | |
"extends": [ | |
"tslint-config-airbnb", | |
"tslint-eslint-rules", | |
"tslint-react" | |
], | |
"jsRules": {}, | |
"rulesDirectory": [], | |
"rules": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": ["airbnb", "plugin:import/react"], | |
"parser": "babel-eslint", | |
"plugins": [ | |
"react", | |
"react-hooks", | |
"import", | |
"jest" | |
], | |
"env": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Window { | |
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any; | |
__REDUX_DEVTOOLS_EXTENSION__: any; | |
} | |
declare const __DEV__: string; | |
declare const __PROD__: string; | |
declare const __TEST__: string; | |
declare module '*.json' { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO: Remove these polyfills once the below issue is solved. | |
// It present here to allow Jest work with the last React environment. | |
// https://github.com/facebookincubator/create-react-app/issues/3199#issuecomment-332842582 | |
global.requestAnimationFrame = cb => { | |
setTimeout(cb, 0); | |
}; | |
global.matchMedia = window.matchMedia || function() { | |
return { | |
matches: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
cacheDirectory: '<rootDir>/.tmp/jest', | |
coverageDirectory: './.tmp/coverage', | |
moduleNameMapper: { | |
'^.+\\.(css|scss|cssmodule)$': 'identity-obj-proxy' | |
}, | |
modulePaths: ['<rootDir>'], | |
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], | |
globals: { | |
NODE_ENV: 'test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"noUnusedLocals": true, | |
"noUnusedParameters": true, | |
"allowSyntheticDefaultImports": true, | |
"esModuleInterop": true, | |
"allowJs": true, | |
"checkJs": false, | |
"module": "esnext", | |
"target": "es5", |