Skip to content

Commit

Permalink
Add default babel support for class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
rherwig committed Aug 11, 2021
1 parent fff7d48 commit d938fde
Show file tree
Hide file tree
Showing 6 changed files with 4,080 additions and 883 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.0] - 2021-08-11
### Added
- Default babel configuration
- Note: This might be a breaking change, if you have partially overwritten the `babelOptions` section in your ESLint config
- Support for `@babel/plugin-proposal-class-properties`


## [1.1.0] - 2021-02-08
### Added
- Babel support via `@babel/eslint-parser`
Expand Down Expand Up @@ -56,7 +63,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Basic implementation based on AirBnB ESLint configuration

[Unreleased]: https://github.com/kellerkinderDE/eslint-config/compare/1.1.0...HEAD
[Unreleased]: https://github.com/kellerkinderDE/eslint-config/compare/2.0.0...HEAD
[2.0.0]: https://github.com/kellerkinderDE/eslint-config/compare/1.1.0...2.0.0
[1.1.0]: https://github.com/kellerkinderDE/eslint-config/compare/1.0.0...1.1.0
[1.0.0]: https://github.com/kellerkinderDE/eslint-config/compare/1.0.0-rc.4...1.0.0
[1.0.0-rc.4]: https://github.com/kellerkinderDE/eslint-config/compare/1.0.0-rc.3...1.0.0-rc.4
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ ESLint config:
}
```

By default, this configuration comes with babel support for
[class properties](https://babeljs.io/docs/en/babel-plugin-proposal-class-properties).
So unless other babel features are required, you can safely omit this part of the configuration.

## Troubleshooting

### `Linter` is not a constructor
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@ module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
plugins: ['@babel/plugin-proposal-class-properties'],
},
},
};
Loading

0 comments on commit d938fde

Please sign in to comment.