eslint / archive-website

The ESLint website
https://eslint.org
MIT License
96 stars 243 forks source link

Docs: fix fixable example #873

Closed QC-L closed 3 years ago

QC-L commented 3 years ago

The example should be:

module.exports = {
    meta: {
        fixable: "code" // or "whitespace"
    },
    create(context) {
        // your rule
    }
};

instead of

module.exports = function(context) {
    meta: {
        fixable: "code" // or "whitespace"
    },
    create(context) {
        // your rule
    }
};
linux-foundation-easycla[bot] commented 3 years ago

CLA Signed

The committers are authorized under a signed CLA.

netlify[bot] commented 3 years ago

✔️ Deploy Preview for eslint ready!

🔨 Explore the source changes: efac92d337960f4e2845bdca0bae27821214c558

🔍 Inspect the deploy log: https://app.netlify.com/sites/eslint/deploys/615086476fff620007dd1c17

😎 Browse the preview: https://deploy-preview-873--eslint.netlify.app/docs/8.0.0/user-guide/migrating-to-8.0.0

aladdin-add commented 3 years ago

can you make the change in eslint repo, as it was copied from there: https://github.com/eslint/eslint/blob/master/docs/user-guide/migrating-to-8.0.0.md?

QC-L commented 3 years ago

Okay!