معرفی شرکت ها


eslint-plugin-no-use-extend-native-0.5.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

ESLint plugin to prevent use of extended native objects
ویژگی مقدار
سیستم عامل -
نام فایل eslint-plugin-no-use-extend-native-0.5.0
نام eslint-plugin-no-use-extend-native
نسخه کتابخانه 0.5.0
نگهدارنده ['dustinspecker']
ایمیل نگهدارنده ['DustinSpecker@DustinSpecker.com']
نویسنده Dustin Specker
ایمیل نویسنده -
آدرس صفحه اصلی git+https://github.com/dustinspecker/eslint-plugin-no-use-extend-native.git
آدرس اینترنتی https://github.com/dustinspecker/eslint-plugin-no-use-extend-native
مجوز MIT
# eslint-plugin-no-use-extend-native [![NPM version](https://badge.fury.io/js/eslint-plugin-no-use-extend-native.svg)](https://badge.fury.io/js/eslint-plugin-no-use-extend-native) [![Build Status](https://travis-ci.org/dustinspecker/eslint-plugin-no-use-extend-native.svg?branch=master)](https://travis-ci.org/dustinspecker/eslint-plugin-no-use-extend-native) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/eslint-plugin-no-use-extend-native.svg)](https://coveralls.io/r/dustinspecker/eslint-plugin-no-use-extend-native?branch=master) [![Code Climate](https://codeclimate.com/github/dustinspecker/eslint-plugin-no-use-extend-native/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/eslint-plugin-no-use-extend-native) [![Dependencies](https://david-dm.org/dustinspecker/eslint-plugin-no-use-extend-native.svg)](https://david-dm.org/dustinspecker/eslint-plugin-no-use-extend-native/#info=dependencies&view=table) [![DevDependencies](https://david-dm.org/dustinspecker/eslint-plugin-no-use-extend-native/dev-status.svg)](https://david-dm.org/dustinspecker/eslint-plugin-no-use-extend-native/#info=devDependencies&view=table) > ESLint plugin to prevent use of extended native objects *Uses [Sindre Sorhus](https://github.com/sindresorhus)'s [proto-props](https://github.com/sindresorhus/proto-props)* ## Install First, install ESLint via ``` npm install --save-dev eslint ``` Then install eslint-plugin-no-use-extend-native ``` npm install --save-dev eslint-plugin-no-use-extend-native ``` ## Usage In your `.eslintrc` file add the plugin as such: ```javascript { plugins: [ 'no-use-extend-native' ] } ``` To modify the single rule, `no-use-extend-native`, add the rule to your `.eslintrc.*` as such: ```javascript { plugins: [ 'no-use-extend-native' ], rules: { 'no-use-extend-native/no-use-extend-native': 1 } } ``` The default value is `2`. If you want the default, you can also just use the following instead of all of the above: ```javascript { extends: ['plugin:no-use-extend-native/recommended'] } ``` With this plugin enabled, ESLint will find issues with using extended native objects: ```javascript const colors = require('colors'); console.log('unicorn'.green); // => ESLint will give an error stating 'Avoid using extended native objects' [].customFunction(); // => ESLint will give an error stating 'Avoid using extended native objects' ``` More examples can be seen in the [tests](https://github.com/dustinspecker/eslint-plugin-no-use-extend-native/blob/master/test/test.js). ## Usage with no-extend-native ESLint's [`no-extend-native`][no-extend-native] rule verifies code is not **modifying** a native prototype. e.g., with the `no-extend-native` rule enabled, the following lines are each considered incorrect: ```javascript String.prototype.shortHash = function() { return this.substring(0, 7); }; Object.defineProperty(Array.prototype, "times", { value: 999 }); ``` `no-use-extend-native` verifies code is not **using** a non-native prototype. e.g., with the `no-use-extend-native` plugin enabled, the following line is considered incorrect: ```javascript "50bda47b09923e045759db8e8dd01a0bacd97370".shortHash() === "50bda47"; ``` The `no-use-extend-native` plugin is designed to work with ESLint's `no-extend-native` rule. `no-extend-native` ensures that native prototypes aren't extended, and should a third party library extend them, `no-use-extend-native` ensures those changes aren't depended upon. [no-extend-native]: http://eslint.org/docs/rules/no-extend-native ## LICENSE MIT © [Dustin Specker](https://github.com/dustinspecker)


نیازمندی

مقدار نام
^1.0.0 is-get-set-prop
^2.0.0 is-js-type
^1.0.0 is-obj-prop
^2.0.0 is-proto-prop


زبان مورد نیاز

مقدار نام
13.2.0 Npm


نحوه نصب


نصب پکیج tgz eslint-plugin-no-use-extend-native-0.5.0:

    npm install eslint-plugin-no-use-extend-native-0.5.0.tgz