These packages provides Deloitte Digital's code standards as an ESLint extensible config.
- Installation for ECMAScript 6+ projects
- Installation for ECMAScript 6+ and React projects
- Installation for Legacy ES5 projects
Please note: If you are using Types such as Flow or experimental features not supported in ESLint itself yet such as decorators. Please additionally configure the babel-parser.
npm install --save-dev @deloitte-digital-au/eslint-config
Add "extends": ["@deloitte-digital-au/eslint-config"]
to your .eslintrc.js
file.
Example:
module.exports = {
extends: [
'@deloitte-digital-au/eslint-config',
],
};
npm install --save-dev @deloitte-digital-au/eslint-config-react
Add "extends": ["@deloitte-digital-au/eslint-config-react"]
to your .eslintrc.js
file.
Example:
module.exports = {
extends: [
'@deloitte-digital-au/eslint-config-react',
],
};
npm install --save-dev @deloitte-digital-au/eslint-config
Add "extends": ["@deloitte-digital-au/eslint-config/legacy"]
to your .eslintrc.js
file.
Example:
module.exports = {
extends: [
'@deloitte-digital-au/eslint-config/legacy',
],
};
If you are using Types such as Flow or experimental features not supported in ESLint itself yet such as decorators.
Add "parser": "babel-eslint"
to your .eslintrc.js
file. Then npm install babel-eslint --save-dev
Read more about configuring this package here.
Part Business. Part Creative. Part Technology. One hundred per cent digital.
Pioneered in Australia, Deloitte Digital is committed to helping clients unlock the business value of emerging technologies. We provide clients with a full suite of digital services, covering digital strategy, user experience, content, creative, engineering and implementation across mobile, web and social media channels.