eslint-config-aether
Version:
A custom code style for ESLint.
64 lines (43 loc) • 960 B
Markdown
[](https://www.npmjs.com/package/eslint-config-aether)
A custom code style for [ESLint](https://eslint.org/).
```js
const btn = document.getElementById("btn");
let count = 0;
function render() {
btn.innerText = `Count: ${count}`;
}
btn.addEventListener("click", () => {
// Count from 1 to 10.
if(count < 10) {
count += 1;
render();
}
});
```
```sh
npm install eslint-config-aether
```
```js
// Minimal config
import { default } from "eslint-config-aether";
```
```js
// Custom config
import { defineConfig } from "eslint/config";
import aether from "eslint-config-aether";
export default defineConfig([
{
files: ["**/*.js", "**/*.ts"],
extends: [aether],
// anything from here will override the base config
rules: {
"@stylistic/padded-blocks": "off"
}
}
]);
```