diff --git a/.prettierrc.js b/.prettierrc.js index dafd473bcd2..5ff6086e865 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,3 +1,21 @@ module.exports = { ...require('@talend/scripts-config-prettier'), + overrides: [ + { + files: 'fork/module-to-cdn/**/*', + ...require('./fork/module-to-cdn/.prettierrc'), + }, + { + files: 'packages/design-system/**/*', + ...require('./packages/design-system/.prettierrc'), + }, + { + files: 'packages/stepper/**/*', + ...require('./packages/stepper/.prettierrc'), + }, + { + files: 'packages/storybook-docs/**/*', + ...require('./packages/storybook-docs/.prettierrc'), + }, + ], }; diff --git a/fork/module-to-cdn/.prettierrc b/fork/module-to-cdn/.prettierrc deleted file mode 100644 index fef1ff88e77..00000000000 --- a/fork/module-to-cdn/.prettierrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "printWidth": 100, - "singleQuote": true, - "trailingComma": "none", - "semi": true, - "arrowParens": "avoid", - "bracketSpacing": false -} diff --git a/fork/module-to-cdn/.prettierrc.js b/fork/module-to-cdn/.prettierrc.js new file mode 100644 index 00000000000..54776c82dd5 --- /dev/null +++ b/fork/module-to-cdn/.prettierrc.js @@ -0,0 +1,8 @@ +module.exports = { + printWidth: 100, + singleQuote: true, + trailingComma: 'none', + semi: true, + arrowParens: 'avoid', + bracketSpacing: false +}; diff --git a/packages/storybook-docs/.prettierrc b/packages/storybook-docs/.prettierrc deleted file mode 100644 index edcb4280a3a..00000000000 --- a/packages/storybook-docs/.prettierrc +++ /dev/null @@ -1,23 +0,0 @@ -{ - "arrowParens": "avoid", - "printWidth": 100, - "singleQuote": true, - "trailingComma": "all", - "semi": true, - "useTabs": true, - "overrides": [ - { - "files": "**/*.json", - "options": { - "tabWidth": 2, - "useTabs": false - } - }, - { - "files": "**/*.scss", - "options": { - "printWidth": 1000 - } - } - ] -} diff --git a/packages/storybook-docs/.prettierrc.js b/packages/storybook-docs/.prettierrc.js new file mode 100644 index 00000000000..e1aff7e04c8 --- /dev/null +++ b/packages/storybook-docs/.prettierrc.js @@ -0,0 +1,23 @@ +module.exports = { + arrowParens: 'avoid', + printWidth: 100, + singleQuote: true, + trailingComma: 'all', + semi: true, + useTabs: true, + overrides: [ + { + files: '**/*.json', + options: { + tabWidth: 2, + useTabs: false, + }, + }, + { + files: '**/*.scss', + options: { + printWidth: 1000, + }, + }, + ], +};