Skip to content

Latest commit

 

History

History

babel-config

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Babel

Create .babelrc.js with the following content:

export default = {
  presets: ["module:@davidsneighbour/babel-config"],
};

or create babel.config.json with the following content:

{
  "presets": ["module:@davidsneighbour/babel-config"]
}

We could also create a babel property inside of package.json:

{
  "babel": {
    "presets": ["module:@davidsneighbour/babel-config"]
  }
}

To override settings of the preset use the overrides parameter:

export default {
  presets: ["module:@davidsneighbour/babel-config"],
  overrides: [
    {
      // override setup
    },
  ],
};

More information about Babel configuration.

All configurations

Configurations
Build Tools
Babel Webpack
Testing
Cypress HTML Validate
Linters and Formatters
Browserslist ESLint PostCSS
Prettier Stylelint
Project Management
Commitlint Release
Markdown and Writing
Markdownlint Remark Lint
Other Tools
Bootstrap Tools