Skip to content

Commit

Permalink
chore(prettier): Improve prettier configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
flegall committed Jun 18, 2017
1 parent 962e45d commit e3c0fed
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions scripts/prettier.js
Expand Up @@ -23,14 +23,29 @@ const defaultOptions = {
};
const config = {
default: {
patterns: ['src/**/*.js'],
ignore: ['**/third_party/**', '**/node_modules/**'],
patterns: [
'js-given/src/**/*.js',
'js-given/src/type-definitions/*.js',
],
ignore: ['**/node_modules/**'],
},
scripts: {
patterns: ['scripts/**/*.js'],
patterns: ['scripts/**/*.js', 'js-given/tools/**/*.js'],
options: {
'trailing-comma': 'es5',
},
ignore: ['**/node_modules/**'],
},
examples: {
patterns: ['examples/**/*.js'],
options: {
'trailing-comma': 'es5',
},
ignore: [
'**/node_modules/**',
'**/flow-typed/**',
'**/jGiven-report/**',
],
},
};

Expand Down

0 comments on commit e3c0fed

Please sign in to comment.